Reading a System Variable from an external drawing
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello:
I have written some code that allows the user to select a project directory through which it finds all the DWG's in the directory structure and creates a report listing each drawing's name and the names of each drawing's xreferenced files along with their insert units. I would also like to include the insunits value for each parent drawing however I am having difficulty getting that to work.
I cannot use the ThisDrawing.GetVariable("InsUnits") as I never have the parent drawing open or active. I use AXDBLib.AxDbDocument to set a variable as the document, then look for the blocks (isxref) inside of it. That works but apparently the object does not support the GetVariable method.
I have also tried setting an object equal to the drawing's database however I am not finding that I can extract system variable information that way either.
I apologize as I am sure I am butchering the terminology here - I am not a programmer . . .
I appreciate any direction you may be able to provide. In short - I would like to extract the value of a system variable from a drawing other than the currently open drawing.
Thanks;
Nick