pycatia.dnb_dpm_interfaces.mfg_assembly¶
Module initially auto generated using V5Automation files from CATIA V5 R28 on 2020-09-25 14:34:21.593357
Warning
The notes denoted “CAA V5 Visual Basic Help” are to be used as reference only. They are there as a guide as to how the visual basic / catscript functions work and thus help debugging in pycatia.
- class pycatia.dnb_dpm_interfaces.mfg_assembly.MfgAssembly(com_object)¶
Note
CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
System.IUnknownSystem.IDispatchSystem.CATBaseUnknownSystem.CATBaseDispatchSystem.AnyObjectMfgAssemblyThis Interface represents a Manufacturing Assembly.Role: It gives access to the C++ DNBIMfgAssembly interface methods Suchasset and get the Name and PartNumberget the type DNBIAMfgAssemblyTypeget the assigned partsadd and remove the assigned partsExample:This example fetches an instance of a Manufacturing Assembly from aselected ActivityDim myActivity As ActivitymyActivity =Dim myItem As ItemSet myItem = myActivity.Items.Item(1)Dim obj As MfgAssemblySet obj = mySel.FindObject(“DNBIAMfgAssembly”)- add_part(i_item: Item) None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub AddPart(Item iItem)Assignes a part (Product, Resource or other MA/MK) to the ManufacturingAssembly. No part can be assigned to AST MAParameters:iItemThe item to be assignedExample:This example adds a product to the assigned Parts of aManufacturing AssemblyDim myProducts As PPRProductsSet myProducts = DELMIA.ActiveDocument.PPRDocument.ProductsDim Part As ItemSet Part = myProducts.Item(2)obj.AddPart(Part)
- Parameters:
i_item (Item) –
- Return type:
None
- property count: int¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
- o Property Count() As long (Read Only)Returns the number of assigned Parts (can be fetched via Item).Example:This example fetches the Number of assigned Parts of a ManufacturingAssemblyDim Number As LongNumber = obj.Count
- Return type:
int
- item(i_index: cat_variant) Item ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Func Item(CATVariant iIndex) As ItemReturns one assigned Part (Product, Resource or other MA/MK) of theManufacturing Assembly.Parameters:iIndexThe index to the item to be returnedReturns:The assigned itemExample:This example cycles through the list of assigned Parts of aManufacturing AssemblyDim j As LongFor j = 1 To obj.CountDim it As ItemSet it = obj.Item(j)Dim ItemName As StringItemName = it.NameNext
- Parameters:
i_index (cat_variant) –
- Return type:
- property ma_name: str¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
- o Property MAName() As CATBSTRReturns or sets the Name of the Manufacturing Assembly. Name of the ASTManufacturing Assembly cannot be set/changedExample:This example fetches the Name of a ManufacturingAssemblyDim myName As StringmyName = obj.MANameThis example sets the Name of a Manufacturing AssemblyDim newName As StringnewName = “NewMAName”obj.MAName = newName
- Return type:
str
- property ma_part_number: str¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
- o Property MAPartNumber() As CATBSTRReturns or sets the Part Number of the Manufacturing Assembly. Part Numberof the AST MA cannot be set/changedExample:This example fetches the Part Number of a ManufacturingAssemblyDim myPart As StringmyPart = obj.MAPartNumberThis example sets the Part Number of a ManufacturingAssemblyDim newPartNbr As StringnewPartNbr = “NewMAPartNumber”obj.MAPartNumber = newPartNbr
- Return type:
str
- property ma_type: int¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
- o Property MAType() As DNBIAMfgAssemblyType (Read Only)Returns the Type of the Manufacturing Assembly. It will be either amanufacturingAssembly or a manufacturingKit defined inDNBIAMfgAssemblyTypeExample:This example fetches the Type of a ManufacturingAssemblyDim MAtype As StringIf obj.MAType = manufacturingAssembly ThenMAtype = “Manufacturing Assembly”ElseMAtype = “Manufacturing Kit”End If
- Returns:
enum dnbia_mfg_assembly_type
- Return type:
int
- remove_part(i_item: Item) None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub RemovePart(Item iItem)Removes a part (Product, Resource or other MA/MK) from the ManufacturingAssembly. No part can be removed from AST MAParameters:iItemThe item to be removedExample:This example removes a product from the assigned Parts of aManufacturing AssemblyDim myProducts As PPRProductsSet myProducts = DELMIA.ActiveDocument.PPRDocument.ProductsDim Part As ItemSet Part = myProducts.Item(2)obj.RemovePart(Part)
- Parameters:
i_item (Item) –
- Return type:
None