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).
Solved! Go to Solution.
Solved by dbroad. Go to Solution.
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.
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.