IManagedComponents.AddContentCenterPart Method (String, String, String,Object(), PointOrMatrix, Nullable(Of Boolean), Nullable(Of Boolean), 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
SyntaxFunction 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
ManagedComponentOccurrence AddContentCenterPart(
string occName,
string ccPath,
string familyName,
Object[] findRow,
PointOrMatrix position = null,
Nullable<bool> grounded = null,
Nullable<bool> visible = null,
StringOrAsset appearance = null
)
Parameters
- occName
- Type: System.String
Component occurrence name. - ccPath
- Type: System.String
Category path in the Content Center tree view. - familyName
- Type: System.String
Content center family name. - findRow
- Type:System.Object()
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.Types.PointOrMatrix
Position and orientation of the occurrence (specified as a DocumentUnitsPoint or DocumentUnitsMatrix). - grounded (Optional)
- Type: System.Nullable(Of Boolean)
Occurrence groundedness. Default is false. - visible (Optional)
- Type: System.Nullable(Of Boolean)
Occurrence visibility. Default is true. - appearance (Optional)
- Type: Autodesk.iLogic.Types.StringOrAsset
Occurrence appearance. Default is As Material.
Return Value
Type:
ManagedComponentOccurrenceThe component occurrence.
RemarksOnly standard Content Center parts are supported.
See Also