vcAssemblyProductType

Assembly product type is a subcategory of a product type that represents an assembly. Assembly product type defines how an assembly is formed from multiple product types, and this information is used to create vcProduct instances with assembly structure metadata.

See in: Overview

Module: vcProcessModel

Parent: vcProductType

Children -

Referenced by: vcAssemblyStep.Owner, vcGetAssemblyStatement.AssemblyProductType

Properties

Learn how to use properties here. The properties are also inherited from the parent class.

NameTypeAccessDescription
RootStepvcAssemblyStepRThe root step of the assembly product type. The root step cannot be removed.
StepsvcObservableList[vcAssemblyStep]RList of all assembly steps defined for the assembly product type.

Methods

Learn how to use methods here. The methods are also inherited from the parent class.

NameReturn TypeParametersDescription
canBeAddedToBooleanvcAssemblyStep parent,
vcAssemblyStep child
Checks if current assembly place can be added to specific parent.
See more
Parameters:
parent (vcAssemblyStep): Target parent
child (vcAssemblyStep): Step to check

Returns:
Boolean: False if relation already exists, True if step can be added.
canBeMovedToBooleanvcAssemblyStep parent,
vcAssemblyStep child,
Integer index
Checks if current assembly place can be moved to specific new place.
See more
Parameters:
parent (vcAssemblyStep): Target parent
child (vcAssemblyStep): Step to check
index (Integer): Index where to insert new step. If index is outside of existing steps range - it's checked if step can be appended as last step.

Returns:
Boolean: True if move can be performed, False otherwise. False is returned also when step is already in requested place.
cloneStepFromvcAssemblyStepvcAssemblyStep parent,
vcAssemblyStep stepToClone,
Integer index
Creates clone of existing assembly step.
See more
Parameters:
parent (vcAssemblyStep): New parent
stepToClone(vcAssemblyStep): Step to clone from
index (Integer): Index where to create new step. If index is outside of existing steps - the created step is appended as last step.

Returns:
vcAssemblyStep: Newly created assembly step.
createStepTovcAssemblyStepvcAssemblyStep parent,
Integer index
Create a new assembly step.
See more
Parameters:
parent (vcAssemblyStep): The step is added to this parent.
index (Integer): Index in the parent where step is created at. If index is outside the range of existing steps then the step is appended as last.

Exceptions:
ValueError: When given name is empty or not unique.

Returns:
vcAssemblyStep: Newly created assembly step.
createStepTovcAssemblyStepvcAssemblyStep parent,
String name,
Integer index
Create a new assembly step with the given name.
See more
Parameters:
parent (vcAssemblyStep): The step is added to this parent.
name (String): New assembly step name.
index (Integer): Index in the parent where step is created at. If index is outside the range of existing steps then the step is appended as last.

Returns:
vcAssemblyStep: Newly created assembly step.
findStepvcAssemblyStepString nameFinds step by name.
See more
Parameters:
name (String): Step name to find.

Returns:
vcAssemblyStep: Found assembly step matching the given name; otherwise None.
moveStepToNonevcAssemblyStep parent,
vcAssemblyStep child,
Integer index
Moves existing assembly step to new place.
See more
Parameters:
parent (vcAssemblyStep): New parent
child (vcAssemblyStep): Step to move
index (Integer): Index where to create new step. If index is outside of existing steps - the created step is appended as last step.

Events

Learn how to use events here. The events are also inherited from the parent class.

NameParametersDescription
OnStepAddedvcAssemblyStep step,
int index
Triggered when a step has been added to the assembly product type.
See more
Parameters:
step (vcAssemblyStep): The newly added step.
index (int): Location of the step within its parent.
OnStepRemovingvcAssemblyStep step,
int index
Triggered when a step is being removed from the assembly product type.
See more
Parameters:
step (vcAssemblyStep): The step about to be removed.
index (int): Location of the step within its parent.