Context Object Parameters
Parameter Name | Type | Read/Write | Comments |
---|
L2PPhysicalElement | PLM Entity |
Read | The physical element
|
L2PPreDefinedPartNumber | String |
Read | The input/ output predefined part number of the Logical element. This
input string may not be empty if the reference corresponding to the
predefined part number set in logical is not available in database.
You may valuate this parameter with the part number which should be
used for synchronization.
|
Sample
The following sample illustrates the syntax of the business rule:
- If the predefined part number of a logical component returns empty, the logical component's instance name is used as predefined part number.
- If the predefined part number is found but does not correspond to any physical component, the part number is not computed.
In both cases, a message indicates the outcome of the synchronization.
let LogPartNumber (String)
let LogInstName (String)
let ReferenceLog (RFLVPMLogicalReference)
ReferenceLog = ThisObject.Reference
LogPartNumber = ReferenceLog.GetAttributeString("V_Ens_PredefinedPartNumber")
LogInstName = ThisObject.Name
if (LogPartNumber == "")
{
Parameters.SetAttributeInteger("Severity", 1)
Parameters.SetAttributeString("Message", "Predefined Part Number was Empty, Logical Instance Name has been used as Predefined Part Number")
Parameters.SetAttributeString("L2PPreDefinedPartNumber", LogInstName)
}
Else
{
Parameters.SetAttributeInteger("Severity", 2)
Parameters.SetAttributeString("Message", "No Corresponding Physical component found for existing Predefined Part Number")
}