Share

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: 30.0

Syntax

VB

Public Interface ICadDoc

C#

public interface ICadDoc

The ICadDoc type exposes the following members.

Properties

  NameDescription
Public propertyActiveModelState
Gets and sets the active model state, in a part or assembly that has more than one model state.
Public propertyDocument
Gets the document in which the rule is running.
Public propertyFactoryDocument
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.
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.

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 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.
Public methodSave
Saves the document in which the rule is running.

See Also

Reference

Was this information helpful?