On Wed, 2009-03-18 at 09:28 -0700, Kirk Wallace wrote:
> I have an irregular pattern of holes I drew with QCAD which outputs DXF
> files. There is a DXF to g-code path converter (dxf2gcode) which handles
> DXF paths, and there is a counterbore script:
> http://wiki.linuxcnc.org/cgi-bin/emcinfo.pl?Simple_EMC_G-Code_Generators#Counterbore_Software
> 
> that would be handy for making holes from a point list. Does anyone know
> of a utility that handles DXF points or how to get DXF points into the
> counterbore app?
> 
> Kirk
> http://www.wallacecompany.com/machine_shop/

I learned from:

http://www.autodesk.com/techpubs/autocad/acad2000/dxf/

that points are "entities" (not objects) with a type code of 100 and
seem to be followed by a line with "AcDbPoint". the X value is on the
line after "10" and Y after "20".

I used the terminal commands:
"
$ ... grep -A 12 Point Documents/QCAD/encoder-24_pos-2b.dxf > points
$ ... grep -A 1 ' 10' points > xs
$ ... grep -A 1 ' 20' points > ys
$ ... awk '0 == (NR + 1) % 3' xs > xs
$ ... awk '0 == (NR + 1) % 3' ys > ys
"

to make a file called points, which has most of each Point entity block.
Then I greped and awked out some of the waste again, to get a list of
the x values and y values.

This is as far as I've gotten, but it shows some promise.
-------------
Kirk
http://www.wallacecompany.com/machine_shop/



------------------------------------------------------------------------------
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
_______________________________________________
Emc-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to