Page 1 of 1
How to retrieve the header properties of the DXF file?
Posted: Mon Nov 05, 2012 12:12 am
by Cambridge Ray
I am referring to items like: AutoCAD Version ($ACADVER), etc. Those in Segment #1.
TIA,
-RFH
Re: How to retrieve the header properties of the DXF file?
Posted: Mon Nov 05, 2012 12:27 am
by andrew
The DL_CreationInterface::setVariable* handlers are called for those.
E.g. for $ACADVER:
Code: Select all
DL_CreationInterface::setVariableString("$ACADVER", "AC1024", 1)
Re: How to retrieve the header properties of the DXF file?
Posted: Mon Nov 05, 2012 12:58 am
by Cambridge Ray
Thanks, Andrew!
-Ramon
Oooops, I may have spoken too soon. See below...
Re: How to retrieve the header properties of the DXF file?
Posted: Mon Nov 05, 2012 1:09 am
by Cambridge Ray
andrew wrote:The DL_CreationInterface::setVariable* handlers are called for those.
E.g. for $ACADVER:
Code: Select all
DL_CreationInterface::setVariableString("$ACADVER", "AC1024", 1)
Andrew:
My only use for dxflib is to
read DXF files, and the purpose of the function that you mentioned seems to be to
write DXF files.
I am simply trying to extend the sample provided with the distribution, so it dumps information about the DXF files on the screen. I know I can get that info with "less": Its just for my own instruction and curiosity.
-Ramon
Re: How to retrieve the header properties of the DXF file?
Posted: Mon Nov 05, 2012 8:59 am
by andrew
Everything in DL_CreationInterface is for reading DXF files. Think of the 'setVariable' and 'add*' functions from the perspective of the parser. The parser finds a variable in the DXF file and calls your setVariable* implementations to tell you what it found.