Click or drag to resize

ICadDoc Interface

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: 23.0
Syntax
Public Interface ICadDoc

The ICadDoc type exposes the following members.

Properties
  NameDescription
Public propertyDocument
Gets the document in which the rule is running.
Public propertyFileName
Gets the filename of the file in which the rule is running.
Public propertyGeometry
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.
Public propertyModelDocument
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.
Public propertyNamedEntities
Gets the named entities (faces, edges, and vertices) and the work features in a document.
Public propertyPath
Gets the path of the folder that stores the document in which the rule is running.
Public propertyPathAndFileName
Gets the complete path with filename of the document in which the rule is running.
Public propertyWorkspacePath
Gets the path of the workspace folder of the active project. This will be empty if no workspace is defined.
Top
Methods
  NameDescription
Public methodChangeExtension
Returns a new filename with the same name as the document in which the rule is running, but with a different extension.
Public methodLaunch
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.
Public methodSave
Saves the document in which the rule is running.
Top
See Also