Hi there, Last month I was provided the following routine and explanation (see Below) What I'm not clear on is the "document object". Can Jason or someone else clarify the word "document in the function)? Can you give me an example perhaps? Thank you, Phillip ----------------------------------------- Here are some toolbox functions that I use. The first one will get the names of the pagesetups defined in the specified document, the other three are used to get the plot device information (IIRC, the functions for plot devices came from Doug Broad) ; function to determine what plotconfigurations ; are defined in the specified document ; [document] - document object ; return: list of strings or nil ; (getPlotConfigNames (vla-get-activedocument (vlax-get-acad-object))) (defun getPlotConfigNames (document / names) (reverse (vlax-for x (vla-get-plotconfigurations document) (setq names (cons (vla-get-name x) names)) ) ) )
In addition to what Jeff said, try here in the help files. Help -> Developer Help -> ActiveX and VBA Reference -> Objects -> Document Object