IManagedComponents Interface |
In a rule, this interface is implemented by the predefined object named Components (which is the same object as ThisAssembly.Components).
Namespace: Autodesk.iLogic.Interfaces
The IManagedComponents type exposes the following members.
Name | Description | |
---|---|---|
ContentCenterLanguage |
Gets and sets the name of the language to be used in searches for Content Center parts.
Acceptable values: "en-US" "zh-CN" "zh-TW" "cs-CZ" "de-DE" "fr-FR" "es-ES" "it-IT" "ja-JP" "ko-KR" "pl-PL" "pt-BR" "ru-RU" "hu-HU"
| |
Count |
Gets the total count of component occurrences (either managed or unmanaged) in the assembly.
| |
Item |
Gets a component occurrence with the given name.
| |
TableSearchTolerance |
Gets and sets a value to be used in searches for numeric values in iPart and Content Center tables.
If the difference between two numbers is less than or equal to the tolerance, they will be considered to be equal.
Default: 0.00001
|
Name | Description | |
---|---|---|
Add |
Adds a component occurrence to an assembly, or modifies an existing component.
| |
AddContentCenterPart(String, String, String, Object, PointOrMatrix, NullableBoolean, NullableBoolean, StringOrAsset) |
Adds a standard Content Center part to an assembly. The part is specified with a family path and a list of column names and values.
| |
AddContentCenterPart(String, String, String, String, PointOrMatrix, NullableBoolean, NullableBoolean, StringOrAsset) |
Adds a standard Content Center part to an assembly. The part is specified with a category path, a family name, and a Designation string.
| |
AddiPart(String, String, Int32, PointOrMatrix, NullableBoolean, NullableBoolean, StringOrAsset) |
Adds an iPart to an assembly, or modifies an existing iPart occurrence.
| |
AddiPart(String, String, Object, PointOrMatrix, NullableBoolean, NullableBoolean, StringOrAsset) |
Adds an iPart to an assembly, or modifies an existing iPart occurrence.
| |
Delete |
Deletes a component occurrence from an assembly.
|
Components can be managed using BeginManage(String) and EndManage(String).
The Add and AddiPart methods require a filename argument. It can be a simple filename, or an absolute or relative path. The system will search for a simple filename or relative path in the active project: