General InformationThis 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.
Input ObjectsInput objects must be of the following types:
Context Object Parameters
SampleThe 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)
}
}
}
| |||||||||||||||||||||||||||||