Pass Version Number to my Class

Use this forum to ask questions about how to do things in dxflib.

Moderator: andrew

Post Reply
pricecreations
Newbie Member
Posts: 7
Joined: Thu Aug 02, 2007 2:34 pm

Pass Version Number to my Class

Post by pricecreations » Thu Aug 02, 2007 2:38 pm

I am trying to pass the version number to my Test_CreationClass so that I can check to see what version of AutoCAD the dxf file was created in to do my own error handling. Does anyone know how I would go about doing this? I am more or less a beginner at all of this. Any help is greatly appreciated.

User avatar
andrew
Site Admin
Posts: 9019
Joined: Fri Mar 30, 2007 6:07 am

Post by andrew » Fri Aug 03, 2007 8:54 am

Some pointers:

Implement the setVariableString(...) method from the DL_CreationInterface (see dl_creationinterface.h)

DXF spec about header variables and their meaning (DXF version is stored as string in field "$ACADVER"):
http://www.autodesk.com/techpubs/autocad/acad2000/dxf/
-> HEADER Section -> HEADER Section Group Codes

pricecreations
Newbie Member
Posts: 7
Joined: Thu Aug 02, 2007 2:34 pm

How

Post by pricecreations » Fri Aug 10, 2007 4:28 pm

Ok, I see...but how to i implement this method? Please bare with me...i am very new to all of this.

thanks!

pricecreations
Newbie Member
Posts: 7
Joined: Thu Aug 02, 2007 2:34 pm

Nevermind

Post by pricecreations » Fri Aug 10, 2007 6:41 pm

nevermind...i got it!

dgp
Newbie Member
Posts: 4
Joined: Wed Nov 10, 2010 2:46 pm

Post by dgp » Thu Nov 11, 2010 7:27 am

Would you mind to share how to implement this method...

Post Reply

Return to “dxflib 'How Do I' Questions”