Copy Design Information in Resulting Product (DELMA_ResultingProduct _CopyDesignInfo _ID)

An opening ID is an entry point used to customize business logic. Copy Design Information in Resulting Product specifies the opening ID run to copy attributes from:

  • An implemented product
  • A fastener with component
  • A fastener without component
  • A bead part
To the resulting product of an item when computing or updating its resulting product.
Note: For more information about customization by business rules, see Installation and Setup: Customize: Behavior: Data Setup: Customization by Business Rules.

This page discusses:

General Information

This opening ID is invoked when computing or updating a resulting Product, and when instantiating the implemented product (or fastener component or bead part or fastener with non component) inside the resulting product.

The table below provides you with information related to the definition of the opening ID.

PLM Opening ID DELMA_ResultingProduct _CopyDesignInfo _ID
Customization intent Execution
Execution context Client

Input Objects

Input objects must be of the following types:

  • ThisObject: Resulting product (VPMReference)
  • Parameters: Corresponds to the context object.

Context Object Parameters

Parameter Name Type Read/Write Comments
iImplementedProductOfFastener ProductOccurrence Read Occurrence of the implemented product or fastener.
iImplementingManufacturedItem MfgProcessOccurrence Read Occurrence of the implementing item
iInstanceInResultingProduct VPMInstance Read Instance of:
  • The implemented product
  • Or fastener with component
  • Or fastener without component
  • Or bead part
In the resulting product

Sample

The following sample instantiates the implemented product inside the resulting product.

let ImplementingManufacturedItem(MfgProcessOccurrence)
let ImplementedProductOfFastener(ProductOccurrence)
let ResultingProduct(VPMReference)
let InstanceInResultingProduct(VPMInstance)
let PrdInst(VPMInstance)
let PcsInst(DELFmiFunctionInstance)

Let PrdName(String)
Let PcsName(String)
Let PrdDesc(String)
Let ResultDisc(String)

ResultDisc = ThisObject.V_discipline

set ImplementedProductOfFastener= Parameters->GetAttributeObject("iImplementedProductOfFastener")
if (ImplementedProductOfFastener <> NULL)
{
	set PrdInst = ImplementedProductOfFastener.Instance
	PrdName = PrdInst->GetAttributeString("PLM_ExternalID") 

	set ImplementingManufacturedItem = Parameters->GetAttributeObject("iImplementingManufacturedItem")
	if (ImplementingManufacturedItem <> NULL)
	{	
		set PcsInst = ImplementingManufacturedItem.Instance
		PcsName = PcsInst->GetAttributeString("PLM_ExternalID") 
	
		set InstanceInResultingProduct = Parameters->GetAttributeObject("iInstanceInResultingProduct")
		if (InstanceInResultingProduct <> NULL)
		{	
			PrdDesc = "Generated from" + PcsName + " and " +PrdName+ " and ”  +ResultDisc
			InstanceInResultingProduct->SetAttributeString("V_description”, PrdDesc)
		}
	}
}