Provides properties and functions for access to the Inventor document in which the rule is running.
In a rule, this interface is implemented by the predefined object named ThisDoc.
Namespace: Autodesk.iLogic.Interfaces
Assembly: Autodesk.iLogic.Interfaces (in Autodesk.iLogic.Interfaces.dll) Version: 30.0
Syntax
VB
Public Interface ICadDoc
C#
public interface ICadDoc
The ICadDoc type exposes the following members.
Properties
Name | Description | |
---|---|---|
![]() | ActiveModelState |
Gets and sets the active model state, in a part or assembly that has more than one model state.
|
![]() | Document |
Gets the document in which the rule is running.
|
![]() | FactoryDocument |
If the rule is running in a model state member document, this returns the corresponding factory document.
Otherwise, in a part or assembly this returns the same object as the Document property.
In a drawing, this returns Nothing.
|
![]() | FileName |
Gets the filename of the file in which the rule is running.
|
![]() | Geometry |
Gets an object that can be used to create points, vectors, and matrices that have values in the units of the document in which the rule is running.
|
![]() | ModelDocument |
In a part or assembly, this will get the document in which the rule is running.
In a drawing, this will get the document that is shown in the first view of a model that is found. If no such view is found, a value of Nothing will be returned.
|
![]() | NamedEntities |
Gets the named entities (faces, edges, and vertices) and the work features in a document.
|
![]() | Path |
Gets the path of the folder that stores the document in which the rule is running.
|
![]() | PathAndFileName |
Gets the complete path with filename of the document in which the rule is running.
|
![]() | WorkspacePath |
Gets the path of the workspace folder of the active project. This will be empty if no workspace is defined.
|
Methods
Name | Description | |
---|---|---|
![]() | ChangeExtension |
Returns a new filename with the same name as the document in which the rule is running, but with a different extension.
|
![]() | Launch |
Launches or opens a file. A non-Inventor file will be opened in the application associated with it.
An Inventor file will be opened in the current Inventor session.
Some file extensions are not supported.
|
![]() | Save |
Saves the document in which the rule is running.
|