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: 29.0
Syntax
VB
Public Interface ICadComponent
C#
public interface ICadComponent
The ICadComponent type exposes the following members.
Properties
Name | Description | |
---|---|---|
![]() | ActiveModelState |
Gets or sets the active model state of a component occurrence.
If the component has no model state this will return an empty string.
|
![]() | Color |
Gets or sets the appearance (i.e. color or other appearance name) of a component occurrence.
|
![]() | iComponentIsActive |
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.
|
![]() | InventorComponent |
Finds a component with the specified name in this assembly or in any subassemblies.
|
![]() | InventorComponentInThisContext |
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).
|
![]() | IsActive |
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.
|
![]() | MemberEditScope |
In model state assemblies, sets the member edit scope for Component.IsActive changes made by iLogic rules. Possible values are: kEditActiveMember : apply changes to the active member only kEditAllMembers : apply changes to all members |
![]() | SkipDocumentSave |
If this is set to True, a component that is changed and then suppressed (by setting the Component.IsActive property to false) will not be saved to disk.
|
![]() | Visible |
Gets or sets the visibility of a component occurrence.
|
Methods
Name | Description | |
---|---|---|
![]() | Replace |
Replaces a component occurrence with a different document.
|
![]() | ReplaceiPart |
Replaces an occurrence of an iPart. The replacement may be generated from a different factory.
|