Click or drag to resize

ICadDrawing Interface

Provides functions for access to the drawing in which the rule is running.

In a rule, this interface is implemented by the predefined object named ThisDrawing.

Namespace:  Autodesk.iLogic.Interfaces
Assembly:  Autodesk.iLogic.Interfaces (in Autodesk.iLogic.Interfaces.dll) Version: 23.0
Syntax
Public Interface ICadDrawing

The ICadDrawing type exposes the following members.

Properties
  NameDescription
Public propertyActiveSheet
Gets the active sheet.
Public propertyDocument
Gets the drawing document in which the rule is running.
Public propertyKeepExtraResources
If this is set to False, then resources that have been copied from the drawing specified by ResourceFileName will be deleted from the current drawing when an iLogic function is used to replace them. This helps to redcue the number of unused resources stored in the drawing. The default value is True.
Public propertyModelDocument
Gets the document that is shown in the first view of a model that is found in the current drawing. If no such view is found, a value of Nothing will be returned.
Public propertyResourceFileName
Gets or sets a path with filename that specifies the name of another drawing from which to pull title block and border definitions for the sheet TitleBlock and Border functions. This can be a relative or absolute path.
Public propertySheet
Gets the sheet with the specified name. An exception (error) will be thrown if the sheet is not found.
Top
Remarks
ActiveSheet will be available as a property of the rule class (so that it can be used as a standalone object), if used in the rule.
See Also