.NET

.NET

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

How to know the dwt or dwg file version.

222 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 (209 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 (172 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
Do you have 60 seconds to spare? The Autodesk Community Team is revamping our site ranking system and we want your feedback! Please click here to launch the 5 question survey. As always your input is greatly appreciated.