Click or drag to resize

IManagedComponents.AddiPart Method (String, String,Object(), PointOrMatrix, Nullable(Of Boolean), Nullable(Of Boolean), 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,
	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: System.String
Component occurrence name.
factoryFile
Type: System.String
The absolute or relative path to an iPart factory file.
findRow
Type:System.Object()
Array of strings to find a row in the iPart table. This is similar to the iPart.FindRow function, but with no "=" or other operators. Only name, value pairs can be specified (e.g. {"Dia", 20, "Height", 100}). The equals operator is implied.
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: ManagedComponentOccurrence
The component occurrence.
See Also