cdsdonham
02.09.2007, 19:25
Hi all --I'm writing my own program to generate a DXF file for a very specific need. I can get the geometry into the DXF file, but when I load the file into autocad's design review, I'm having trouble with the scale or units on the drawing.Can anyone point me at either documentation and/or an example of how to specify in the DXF file what the units or scale of the drawing is? Generating the polylines was easy (with the help of a library). There appears to be a bunch of header variables and I can't seem to get the right combination of $VARIABLES to get the scale set correctly.Also, I'm using a random cad library I found on the web which appears to be a bit dated. I need a C++ API under windows for generating the DXF file. Does anyone have any good suggestions about what to use? I tried autocad's free library, but it appears to generate DWF files not DXF or DWG which is what the CMC tool apparently needs.Thanks.Chris