ICadDoc Interface |
In a rule, this interface is implemented by the predefined object named ThisDoc.
Namespace: Autodesk.iLogic.Interfaces
The ICadDoc type exposes the following members.
Name | Description | |
---|---|---|
Document |
Gets the document in which the rule is running.
| |
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.
|
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 runs a file in the Windows operating system. If a data file is specified, it opens in its native application. If an executable file (.exe) is specified, it runs the program.
If an Inventor file is specified, the file will be opened in the current Inventor session.
| |
Save |
Saves the document in which the rule is running.
|