AnsweredAssumed Answered

Cycle through open drawings?

Question asked by Aaron Torberg on Dec 12, 2017
Latest reply on Dec 12, 2017 by Aaron Torberg

I'm writing a macro to set some print options based on the PDM state of the drawing, the drawing size, and the physical location the print is sent to, then print the open drawing.  I wanted to take it one step further and provide a button to print all of the currently open drawing files.  Is there an elegant way to retrieve a list of the open drawings?  I found sample code to get a list of all the open documents, but if I have an assembly open and two or three drawings, the code returns every part and assembly file within the assembly in addition to the drawing files.  I thought I would be dealing with four or five files, but the list returned is more like 100-200 items.  I know how to parse through the data and pull out the drawing files, but I thought there might be an easier way.  I did some searching but I didn't find much - I am also reasonably new to VBA and programming macros so if this is a dumb question please go easy on me...