Click or drag to resize

ICadComponent Interface

Provides properties and functions for assembly component occurrences.

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

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

The ICadComponent type exposes the following members.

Properties
  NameDescription
Public propertyColor
Gets or sets the appearance (i.e. color or other appearance name) of a component occurrence.
Public propertyiComponentIsActive
Gets or sets a value to specify whether an iPart or iAssembly component is active or not. If this is true, the specified component occurrence is active (unsuppressed). If this is false, the component is suppressed.
Public propertyInventorComponent
Finds a component with the specified name in this assembly or in any subassemblies.
Public propertyInventorComponentInThisContext
Finds a component with the specified name in this assembly or in any subassemblies. Even if the component is found in a subassembly, the ComponentOccurrence returned will be in the context of this higher-level assembly (the assembly from which the rule is run).
Public propertyIsActive
Gets or sets a value to specify whether the component is active or not. If this is true, the specified component occurrence is active (unsuppressed). If this is false, the component is suppressed.
Public propertySkipDocumentSave
Public propertyVisible
Gets or sets the visibility of a component occurrence.
Top
Methods
  NameDescription
Public methodReplace
Replaces a component occurrence with a different document.
Public methodReplaceiPart
Replaces an occurrence of an iPart. The replacement may be generated from a different factory.
Top
Remarks
Note: the newer IManagedComponents interface is recommended. It provides methods to add and remove components, instead of suppressing and unsuppressing them.
See Also