Introduction
If we have few reference attributes on EBOM which are useful for manufacturing planning, then we can copy those attribute values to MBOM based on scope link between MI and EI using this BL opening id.
This BL gets triggered when a scope link or implement link is created between the MI and EI.
The below provided example describes how this can be achieved.
Here in this example the reference attributes on MI are initialized from the EI when a scope link is created between them
Version – 2024x FD06 (FP2450) & 2025x FD01 (FP2506).
Pre-requisites:
Licenses –
PPL(Process Engineer): required to create Mfg. Assembly object.
Disclaimer: Licenses mentioned above are as per 2024x and 2025x documentation.
| PLM Opening ID | DELPLMRelationAfterEstablishment |
| Customization intent | Execution |
| Execution context | Client |
| Usage | Executed after scope link is created between EI and MI.
|
Naming Convention used for this document:
| EI | Engineering item |
| MI | Manufacturing item |
Example: Initialize reference attributes on MI from EI based on scope link
This example shows how the reference attributes on MI can be initialized by copying the useful reference attribute values from EI based on implement link.
Logical Flow
Business Rule
Detail Description
When we create a scope link between MI and EI the opening ID "DELPLMRelationAfterEstablishment" gets invoked.
After the MI is scoped with the EI the ‘Title’, ‘Description’ and custom attribute 'Custom_Supplier_Code'(if the attribute is present) of MI are initialized from the attributes of scoped EI as given below:
Title of MI = Title of EI
Description of MI = Description of EI
Custom_Supplier_Code of MI = Custom_Supplier_Code of EI (Custom Attribute)
Note :- In case an existing Mfg. reference is reused from the database, this Opening Id is not triggered.
Logic to get the reference of the MI and the scoped EI
set InputSourceList = Parameters->GetAttributeObject("Source")
set InputTgtList = Parameters->GetAttributeObject("Target")
set RelationName = Parameters->GetAttributeString("RelationType")
//Assigning ThisSrcReference to Mfg. Item and ThisTgtReference to Scoped Eng. Item
set ThisTgtReference = InputTgtList->GetItem(1)
set ThisSrcReference = InputSourceList->GetItem(1)Logic to initialize Reference Title and Reference Description on MI
if ((ThisTgtReference->HasAttribute("V_Name") == true) and (ThisSrcReference->HasAttribute("V_Name") == true))
{
PartName = ThisTgtReference->GetAttributeString("V_Name")
Trace(2 , "ThisTgtReference.V_Name = ", PartName)
strRevision = ThisTgtReference->GetAttributeString("V_version")
NameSize=PartName.Length()
if (NameSize>100)
{
PartName=PartName.Extract(0,96)+ "..."
}
ThisSrcReference.V_Name = PartName
//Trace(2 , "ThisSrcReference.V_Name = ", ThisSrcReference.V_Name)
}
if ((ThisSrcReference->HasAttribute("V_description") == true) and (ThisTgtReference->HasAttribute("V_description") == true))
{
ThisSrcReference.V_description = ThisTgtReference.V_description + " " + ThisSrcReference.V_Name + " rev-" + strRevision
}Logic to initialize custom attribute Custom_Supplier_Code on MI
if ((ThisTgtReference->HasAttribute("Custom_Supplier_Code") == true) and (ThisSrcReference->HasAttribute("Custom_Supplier_Code") == true))
{
strCustomPartNumber = ThisTgtReference.GetAttributeString("Custom_Supplier_Code")
if(strCustomPartNumber <> "")
{
ThisSrcReference.SetAttributeString("Custom_Supplier_Code", strCustomPartNumber)
}
}Example Scenarios:
| Input | Results |
| Scenario | Create scope link between Root Assembly and Mfg. Assembly |
| The reference attributes Title, Description and custom attribute Custom_Supplier_Code are copied from Root Assembly(EI) to created Manufacturing Assembly(MI). |
Business Rule Deployment
You may refer the below page for Business Rule deployment.
For deployment using Data Setup app following Resource set ID and opening needs to be used:
Resource Set ID:
Opening ID:
Fact Type:
Deploy the BL using Data Setup for "Fact type" = "DELFmiFunctionReference"
Reference
Documentation: After Operation Instantiation (DELPLMRelationAfterEstablishment)
Note:-This documentation is for links created between operation, but this Business Rule also works for links created between MBOM and EBOM
Author
Person of Contact - @Sattwik CHAKRABORTY
