Context Object Parameters
Parameter Name | Type | Read/Write | Comments |
---|
HistorizationRef | PLMEntity | Read | Item / System / Operation reference, defined as Origin of the current object. |
StatusValue | String | Write | Status of the Origin object, to be displayed in the Origins panel. |
Sample
The following sample shows how to use the opening ID.
/* ---- input ---- */
Let ThisObjectRef(PLMEntity)
Let HistorizationObjectRef(PLMEntity)
Let StatusValue(String)
Set HistorizationObjectRef = Parameters.GetAttributeObject("HistorizationRef")
Set ThisObjectRef = ThisObject
StatusValue = "Not Loaded"
if (HistorizationObjectRef <> NULL)
{
StatusValue = "OK"
}
if ( true == Parameters.HasAttribute("StatusValue"))
{
Parameters.SetAttributeString("StatusValue", StatusValue)
}