In order to provide better handling of system resources Inventor does not load all of the data when a document is opened but delays loading information until it is needed. A common need in many programs is to have the user select vertices on parts. Instead of loading the part model in order to return the true selected Vertex, Inventor returns a GenericObject. You can use this method to obtain more information about the selected object. If it is a vertex you can get the point coordinates without forcing the entire model to be loaded, or if you do need to do additional processing that requires access to the full model you can also force that by using the "SelectedObject" argument.
Sets the graphics facet groups that must be saved with this file. Each bit indicating a level of detail. Up to 6 permitted. File size affected adversely when more. Recommend pick from GraphicsLevelsOfDetailEnum.
Constructs and sets the Internal Name and Revision Identifier for this Document from strings supplied. This can only be done on a previously un-saved document (New or SaveCopyAs)
Method that releases the reference that gets added if a document is opened invisibly through the API. Releasing the reference on a hidden document makes it a candidate for closure the next time Inventor closes all unreferenced documents.
Method that performs compute operations on all of the entities within this Document's scope that may be out of date with respect to their driving entities.
Gets and sets the source of the appearance for the part. Setting to kMaterialAppearance will clear appearance override so the document uses the appearance associated with active material.
Read-only property that returns an Assets collection object that contains all of the assets, regardless of their type, that are associated with the document.
Read-only property that returns the full file name of the associative foreign file. This property returns empty string if the IsEmbeddedDocument returns False.
Gets the GUID that represents the last saved revision of database contained in this document. This revision id tracks modifications to the database (such as reference changes, geometry changes, etc.) but does not track file property changes.
Property that returns the DisabledCommandList object. This object allows the document to disable specific commands. This list contains commands that are disabled in addition to those specified by the DisabledCommandTypes property.
Property that returns the fully qualified name of the document. The string is the full file name concatenated with the document name and is a unique identifier for the document. The document name is returned by the Name property on the Document object.
Property that returns whether this document can be currently modified. One of the reasons a document may be non-modifiable is if any other document belonging to the file containing this document is currently being edited.
Property that returns the ModelingSettings object. The ModelingSettings object provides access to various modeling related document options. This is somewhat equivalent to the Modeling tab of the Document Settings dialog.
Property that returns the ObjectVisibility object providing override visibility controls for objects in the document. Changes are not saved with the document.
Property that returns whether this document is currently open. If False, the document has only been initialized and calling methods or properties on the document could cause it to open.
Gets the collection of OLE attachments made in this Document that match the input type. Returns all OLE attachments if type is kOLEDocumentUnknownObject.
Property that returns all the documents in memory that reference this document. A referencing document may or may not be fully open (i.e. may just be initialized).
Property that returns the Sketch3DSettings object. The Sketch3DSettings object provides access to various 3D sketch related document options. This is somewhat equivalent to the 3D sketch related properties on Sketch tab of the Document Settings dialog.
Property that returns the SketchSettings object. The SketchSettings object provides access to various sketch related document options. This is somewhat equivalent to the Sketch tab of the Document Settings dialog.
Gets/Sets the sub-Type (a published GUID. See DocCLSIDs.h) of this Document. Setting a new sub-Type will invoke a validation sequence and may fail if the operation is invalid.
This sample demonstrates the navigation between a browser node and it's corresponding data model object and vice versa. This sample creates a work plane, finds its browser node and gets the work plane object back from the browser node.