28.11.2014 Views

AutoCAD® 2002 - Autodesk

AutoCAD® 2002 - Autodesk

AutoCAD® 2002 - Autodesk

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

0<br />

<br />

.<br />

. <br />

.<br />

0<br />

ENDSEC<br />

Groups of object data<br />

End of OBJECTS section<br />

Writing a DXF Interface Program<br />

Writing a program that communicates with AutoCAD by means of the DXF<br />

file appears more difficult than it actually is. The DXF format makes it easy<br />

to ignore information you don’t need, while reading the information you do<br />

need.<br />

Reading a DXF File<br />

The following example is a simple Visual Basic program that reads a DXF file<br />

and extracts specific codes and values from a given object in a given section.<br />

154 | Appendix A Drawing Interchange File Formats

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!