IManagedComponents.AddContentCenterPart Method (String, String, String, String, PointOrMatrix, Nullable(Of Boolean), Nullable(Of Boolean), 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.
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,
designation As String,
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,
string designation,
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. - designation
- Type: System.String
The Designation value.
This is the cell value found in the column that has the internal name "DESIGNATION".
(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