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.
| Name | Type | Access | Description |
| RootStep | vcAssemblyStep | R | The root step of the assembly product type. The root step cannot be removed. |
| Steps | vcObservableList[vcAssemblyStep] | R | List 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.
| Name | Return Type | Parameters | Description |
| canBeAddedTo | Boolean | vcAssemblyStep parent, vcAssemblyStep child | Checks if current assembly place can be added to specific parent.See moreParameters: parent (vcAssemblyStep): Target parent child (vcAssemblyStep): Step to check Returns: Boolean: False if relation already exists, True if step can be added. |
| canBeMovedTo | Boolean | vcAssemblyStep parent, vcAssemblyStep child, Integer index | Checks if current assembly place can be moved to specific new place.See moreParameters: 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. |
| cloneStepFrom | vcAssemblyStep | vcAssemblyStep parent, vcAssemblyStep stepToClone, Integer index | Creates clone of existing assembly step.See moreParameters: 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. |
| createStepTo | vcAssemblyStep | vcAssemblyStep parent, Integer index | Create a new assembly step.See moreParameters: 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. |
| createStepTo | vcAssemblyStep | vcAssemblyStep parent, String name, Integer index | Create a new assembly step with the given name.See moreParameters: 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. |
| findStep | vcAssemblyStep | String name | Finds step by name.See moreParameters: name (String): Step name to find. Returns: vcAssemblyStep: Found assembly step matching the given name; otherwise None. |
| moveStepTo | None | vcAssemblyStep parent, vcAssemblyStep child, Integer index | Moves existing assembly step to new place.See moreParameters: 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.
| Name | Parameters | Description |
| OnStepAdded | vcAssemblyStep step, int index | Triggered when a step has been added to the assembly product type.See moreParameters: step (vcAssemblyStep): The newly added step. index (int): Location of the step within its parent. |
| OnStepRemoving | vcAssemblyStep step, int index | Triggered when a step is being removed from the assembly product type.See moreParameters: step (vcAssemblyStep): The step about to be removed. index (int): Location of the step within its parent. |