vcProductTypeManager
Product type manager is used to create, modify and delete product type or assembly product type objects.
See in: Overview
Module: vcProcessModel
Parent: vcObject
Children -
Referenced by: vcProcessController.ProductTypeManager
Properties
Learn how to use properties here. The properties are also inherited from the parent class.
| Name | Type | Access | Description |
| ProductTypes | vcObservableList[vcProductType] | R | Gets an observable list containing all product types in this product type manager. |
Methods
Learn how to use methods here. The methods are also inherited from the parent class.
| Name | Return Type | Parameters | Description |
| createProductTypeTo | vcProductType | vcProcessFlowGroup flowGroup, String productTypeName, Optional Keyword[createAssemblyProductType = Boolean] | Creates a new product type and assigns it to the given flow group.See moreParameters: flowGroup (vcProcessFlowGroup): Process flow group where the new product type is assigned to. productTypeName (String): Unique name for the product type to be created. Optional: createAssemblyProductType (Boolean): If true, creates an instance of vcAssemblyProductType. Otherwise vcProductType is created. Exceptions: ValueError: When the given productTypeName is not unique. Returns: vcProductType: The newly created product type or assembly product type. |
| findProductType | vcProductType | String name | Finds a product type with the given name. See moreParameters: name (String): Product type name. Returns: vcProductType: Product type with given name. None if no product type is found. |
Example: Access Process Modeling Main Objects
""" Access main objects for process modeling in vcCore.""" import vcCore as vc world = vc.getWorld() pc = world.ProcessController assembly_pattern_manager = pc.AssemblyPatternManager flow_group_manager = pc.FlowGroupManager flow_table = pc.FlowTable process_manager = pc.ProcessManager product_matcher = pc.ProductMatcher product_type_manager = pc.ProductTypeManager transport_system = pc.TransportSystem