This example fetches an instance of a Manufacturing Assembly from a selected Activity
Dim myActivity As Activity
myActivity =
Dim myItem As Item
Set myItem = myActivity.Items.Item(1)
Dim obj As MfgAssembly
Set obj = mySel.FindObject("DNBIAMfgAssembly")
Assignes a part (Product, Resource or other MA/MK) to the Manufacturing Assembly.
Parameters:
iItem
The item to be assigned
Example:
This example adds a product to the assigned Parts of a Manufacturing Assembly
Dim myProducts As PPRProducts
Set myProducts = DELMIA.ActiveDocument.PPRDocument.Products
Dim Part As Item
Set Part = myProducts.Item(2)
obj.AddPart(Part)
Removes a part (Product, Resource or other MA/MK) from the Manufacturing Assembly.
Parameters:
iItem
The item to be removed
Example:
This example removes a product from the assigned Parts of a Manufacturing Assembly
Dim myProducts As PPRProducts
Set myProducts = DELMIA.ActiveDocument.PPRDocument.Products
Dim Part As Item
Set Part = myProducts.Item(2)
obj.RemovePart(Part)