AutoCAD Architecture Forum
Welcome to Autodesk’s AutoCAD Architecture Forums. Share your knowledge, ask questions, and explore popular AutoCAD Architecture topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

DWG File INSUNITS Info

2 REPLIES 2
SOLVED
Reply
Message 1 of 3
Anonymous
783 Views, 2 Replies

DWG File INSUNITS Info

There is someone who knows some way to obtain the information of which units have been configured in a dwg file, without opening it with AutoCAD or another CAD program. I'm looking for an alternative that allows executing, for example, a console program that is able to read the DWG file and get the information about which units are configured (eg millimeters, meters, etc).

 
All the alternatives that I have found require the installation of some library in the user's computer and my problem lies in a computer where the users are only common users and can not make changes to the system or install something extra. For that, it must be a standalone utility that allows to make a dump of the header, for example, to read the unit information.
 
The computer has installed AutoCAD Architecture 2016 and there is the alternative of programming in Delphi XE6 or Visual Studio 2012 or 2015.
 
Any ideas???
Tags (3)
2 REPLIES 2
Message 2 of 3
dbroad
in reply to: Anonymous

If this is something you want to batch process, since you already have AutoCAD Architecture installed, I suggest using Script-Pro with the AutoCAD Core Console. Write a script and execute it over whole directories. https://knowledge.autodesk.com/support/autocad/downloads/caas/downloads/content/autodesk-customizati...

I believe that you can use any non-interactive AutoLISP and .NET code in the core console.

 

I don't see any advantage in not using the core console (which is an AutoCAD component) to process the drawings.  This topic though, is not really an AutoCAD Architecture topic and probably should either be in an AutoCAD customization forum or an AutoCAD Architecture forum.

 

If you just need a way to open and review drawings one at a time without changing them, use AutoCAD Trueview.

 

AFAIK, anything else would require using a third-party app to open and process the drawing database.

Architect, Registered NC, VA, SC, & GA.
Message 3 of 3
Anonymous
in reply to: dbroad

Thanks for the response and information, the Script Pro looks very promising.


My problem is that I need to control in which units a dwg file is configured and what is the scale used in the model.

 

I must do this for thousands of files in different physical locations so the work of opening and closing the file to look at the isnunits and scale would be a simple time madness.

 

My interest is to read the header of each file that is where the configuration information of each model is stored in dwg format.

 

Thank you!!

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report