IManagedComponentsAddiPart Method (String, String, Int32, PointOrMatrix, NullableBoolean, NullableBoolean, StringOrAsset) |
Adds an iPart to an assembly, or modifies an existing iPart occurrence.
Namespace:
Autodesk.iLogic.Interfaces
Assembly:
Autodesk.iLogic.Interfaces (in Autodesk.iLogic.Interfaces.dll) Version: 23.0
Syntax Function AddiPart (
occName As String,
factoryFile As String,
row As Integer,
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 AddiPart(
string occName,
string factoryFile,
int row,
PointOrMatrix position = null,
Nullable<bool> grounded = null,
Nullable<bool> visible = null,
StringOrAsset appearance = null
)
Parameters
- occName
- Type: SystemString
Component occurrence name. - factoryFile
- Type: SystemString
The absolute or relative path to an iPart factory file. - row
- Type: SystemInt32
The row number in the iPart factory table. The first row is 1. - 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:
ManagedComponentOccurrenceThe component occurrence.
See Also