Context Object Parameters
Parameter Name | Type | Read/Write | Comments |
---|
iProcessOccurrence | MfgProcessOccurrence | Read | MfgItem occurrence, implemented by the Operation iSystemOperationOccurrence. |
iWorkplanOperationOccurrence | ProdSystemOccurrence | Read | WorkplanOperation occurrence, implemented by the iSystemOperationOccurrence. |
iSystemOperationOccurrence | ProdSystemOccurrence | Read/Write | System or Operation occurrence, implementing iProcessOccurrence or iWorkplanOperationOccurrence. |
Sample
The following sample shows how to use the opening ID.
let iProcessOccurrence(MfgProcessOccurrence)
let iWorkplanOperationOccurrence(ProdSystemOccurrence)
let iSystemOperationOccurrence(ProdSystemOccurrence)
let implementedInstance(PLMCoreInstance)
let implementedInstanceDescription(String)
let implementingReference(PLMCoreReference)
set iSystemOperationOccurrence = Parameters->GetAttributeObject("iSystemOperationOccurrence")
set iProcessOccurrence= Parameters->GetAttributeObject("iProcessOccurrence")
set iWorkplanOperationOccurrence= Parameters->GetAttributeObject("iWorkplanOperationOccurrence")
if(true)
{
if (iSystemOperationOccurrence <> NULL)
{
/*************Read the description of the implemented object*******************/
if (iProcessOccurrence <> NULL)
{
set implementedInstance = iProcessOccurrence.Instance
}
if (iWorkplanOperationOccurrence <> NULL)
{
set implementedInstance = iWorkplanOperationOccurrence.Instance
}
if(implementedInstance <> NULL)
{
set implementedInstanceDescription = implementedInstance.V_description
}
/************* setting description on the implementing object *******************/
if(implementedInstanceDescription <> "" AND implementedInstanceDescription <> NULL)
{
set implementingReference = iSystemOperationOccurrence.Reference
if (implementingReference <> NULL)
{
implementingReference.V_description = implementedInstanceDescription
}
}
}
}