Professional Documents
Culture Documents
The following properties for returning a DrawingDocument object are described in this
section:
Documents property
ActiveDocument property
Documents Property
Use Documents(index), where index is the document name or index number in the
Documents collection, to return a single DrawingDocument object. The following example
activates the second document in the collection.
CATIA.Documents(2).Activate
The index number denotes the order in which the documents were opened or created.
Documents(1) is the second document created, and Documents(Documents.Count) is the
last one created. Activating a document doesn't change its index number. All documents are
included in the index count, even if they're hidden.