Click or drag to resize

IManagedComponents Interface

Provides functions for adding, modifying, and deleting assembly components.

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
Assembly:  Autodesk.iLogic.Interfaces (in Autodesk.iLogic.Interfaces.dll) Version: 23.0
Syntax
Public Interface IManagedComponents
	Inherits IEnumerable

The IManagedComponents type exposes the following members.

Properties
  NameDescription
Public propertyContentCenterLanguage
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"
Public propertyCount
Gets the total count of component occurrences (either managed or unmanaged) in the assembly.
Public propertyItem
Gets a component occurrence with the given name.
Public propertyTableSearchTolerance
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
Top
Methods
  NameDescription
Public methodAdd
Adds a component occurrence to an assembly, or modifies an existing component.
Public methodAddContentCenterPart(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.
Public methodAddContentCenterPart(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.
Public methodAddiPart(String, String, Int32, PointOrMatrix, NullableBoolean, NullableBoolean, StringOrAsset)
Adds an iPart to an assembly, or modifies an existing iPart occurrence.
Public methodAddiPart(String, String, Object, PointOrMatrix, NullableBoolean, NullableBoolean, StringOrAsset)
Adds an iPart to an assembly, or modifies an existing iPart occurrence.
Public methodDelete
Deletes a component occurrence from an assembly.
Top
Remarks

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:

  • workspace
  • workgroup search paths (if any)
  • libraries (if any)
If the Using Unique File Names option is set in the active project, the system will throw an error if two or more files are found with the specified name.

See Also