.NET

Reply
Valued Contributor
RamanSBV
Posts: 88
Registered: ‎02-28-2012
Message 1 of 3 (221 Views)

How to know the dwt or dwg file version.

221 Views, 2 Replies
03-07-2013 10:19 PM

Hi,

 

I have a scenario, where I have to create new drawing file using given dwt or dwg file.

 

But before starting of creating new drawing file, first  I should know the using dwt  file version is same as currently creating drawing file.

 

Please guide me how I can achieve same.

 

Regards,

Raman

Active Contributor
WWFreeman
Posts: 27
Registered: ‎09-02-2012
Message 2 of 3 (208 Views)

Re: How to know the dwt or dwg file version.

03-08-2013 12:15 AM in reply to: RamanSBV

If everything else fails, it might help that the binary content of a DWG starts with the version token. For example, 2007 DWG starts with characters AC1021. Here you should find some other codes.

 

Also see the DwgVersion enum. There you can obtain the "Current" component.

Distinguished Mentor
BlackBox_
Posts: 785
Registered: ‎02-25-2013
Message 3 of 3 (171 Views)

Re: How to know the dwt or dwg file version.

03-09-2013 06:13 PM in reply to: WWFreeman

Have you considered MaintenanceReleaseVersion?

 

http://www.theswamp.org/index.php?topic=37698.msg427371#msg427371



"Potential has a shelf life." - Margaret Atwood


Autodesk Exchange Apps ~ Autoloader ~ AutoCAD Security


AutoCAD® 2014, and Civil 3D® 2014 Certified Professional ~ Autodesk® Authorized Developer

Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Announcements
Are You Going To Be @ AU 2014? Feel free to drop by our AU topic post and share your plans, plug a class that you're teaching, or simply check out who else from the community might be in attendance. Ohh and don't forgot to stop by the Autodesk Help | Learn | Collaborate booths in the Exhibit Hall and meet our community team if you get a chance!