Click or drag to resize

IManagedComponentsAddContentCenterPart Method (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.

Namespace:  Autodesk.iLogic.Interfaces
Assembly:  Autodesk.iLogic.Interfaces (in Autodesk.iLogic.Interfaces.dll) Version: 23.0
Syntax
Function AddContentCenterPart ( 
	occName As String,
	ccPath As String,
	familyName As String,
	findRow As Object(),
	Optional position As PointOrMatrix = Nothing,
	Optional grounded As Nullable(Of Boolean) = Nothing,
	Optional visible As Nullable(Of Boolean) = Nothing,
	Optional appearance As StringOrAsset = Nothing
) As ManagedComponentOccurrence

Parameters

occName
Type: SystemString
Component occurrence name.
ccPath
Type: SystemString
Category path in the Content Center tree view.
familyName
Type: SystemString
Content center family name.
findRow
Type: SystemObject
Array of name, value pairs to select a row in the table. The names are column names (without units). The values can be strings or numbers. (e.g. {"Nominal Length", 45, "SIZE_SEL", "M6"})

The column names can be either display or internal names. Sometimes there are two or more columns with the same display name. In that case, use the internal name. (You can see the internal name in the table by hovering over the column header.)

position (Optional)
Type: Autodesk.iLogic.TypesPointOrMatrix
Position and orientation of the occurrence (specified as a DocumentUnitsPoint or DocumentUnitsMatrix).
grounded (Optional)
Type: SystemNullableBoolean
Occurrence groundedness. Default is false.
visible (Optional)
Type: SystemNullableBoolean
Occurrence visibility. Default is true.
appearance (Optional)
Type: Autodesk.iLogic.TypesStringOrAsset
Occurrence appearance. Default is As Material.

Return Value

Type: ManagedComponentOccurrence
The component occurrence.
Remarks
Only standard Content Center parts are supported.
See Also