Share

Documents Object

Derived from: DocumentsEnumerator Object

Description

The Document collection object contains all in-memory Inventor documents.

Methods

Name Description
Add Creates a new of the specified type. Optionally, a template file can be specified instead.
CloseAll Method that closes all the documents in the current Inventor session. Changes are not saved to any of the documents. In other words, if there are dirty documents in the collection, changes made to them will be lost.
Open Method that opens the specified Inventor document.
OpenWithOptions Method that opens the specified Inventor document.

Properties

Name Description
Count Property that returns the number of items in this collection.
Item Returns the specified object from the collection. This is the default property of the DocumentsEnumerator object.
ItemByName Returns the specified Document object from the collection.
LoadedCount Query Loaded documents.
Type Returns an ObjectTypeEnum indicating this object's type.
VisibleDocuments Gets the collection of visible documents.

Accessed From

Application.Documents, InventorServer.Documents, InventorServerObject.Documents

Samples

Name Description
Adding iAssembly occurrences This sample demonstrates adding iAssembly occurrences to an assembly.
Adding iPart occurrences to an assembly This sample demonstrates adding iPart occurrences to an assembly.
Creating a new parameter group This sample demonstrates the creation of model, reference and user parameters and copying these parameters to a newly created group.
Create a Configuration Table This sample demonstrates the creation of a configuration (iPart/iAssembly) table in a drawing from a factory document.

Version

Introduced in version 4

Was this information helpful?