DrawingDocument Object

 

See Also UseCases Properties Methods

 




Application Object Diagram

Represents a Drawing document. The DrawingDocument object is part of the Documents collection that contains all the documents currently open in the CATIA application.

Using the DrawingDocument Object

The following properties for returning a DrawingDocument object are described in this section:

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.

Use the ActiveDocument property to retrieve the active document:

Dim Doc As Document
Set Doc = CATIA.ActiveDocuments

Copyright © 1994-2003, Dassault Systèmes. All rights reserved.