General InformationThe table below provides you with information related to the definition of the opening ID.
Input ObjectsInput objects must be of the following type:
Context Object Parameters
Sample
/* ----------------- */
/* Declare Variables */
/* ----------------- */
Let strAttributeValue(String)
Let strAttributeID(String)
Let Value(Real)
Let AttributeRealValue(Real)
Let AttributeMKSValue(Real)
Let ItemReference(DELFmiFunctionReference)
Let ReturnMessage(String)
Let propagatedStatus(Integer)
ItemReference = ThisObject
strAttributeID = Parameters->GetAttributeString("AttributeID")
strAttributeValue = Parameters->GetAttributeString("AttributeValueString")
AttributeRealValue = Parameters->GetAttributeReal("AttributeValueReal")
AttributeMKSValue = Parameters->GetAttributeReal("AttributeValueMKS")
if (ItemReference <> NULL)
{
if (strAttributeID == "V_description")
{
strAttributeValue = "YESTESTED"
ItemReference.SetAttributeString(strAttributeID,strAttributeValue)
ReturnMessage = BuildMessageNLS("DELVidCtlReportManager", "ValuePropagationSucceeded")
propagatedStatus = 1
}
else if (strAttributeID == "V_DiameterOfFeature" OR strAttributeID == "V_DepthOfFeature")
{
ItemReference.SetAttributeReal(strAttributeID,AttributeMKSValue)
ReturnMessage = BuildMessageNLS("DELVidCtlReportManager", "ValuePropagationSucceeded")
propagatedStatus = 1
}
else
{
ReturnMessage = BuildMessageNLS("DELVidCtlReportManager", "NoRulesDefinedPropagation")
propagatedStatus = 0
}
}
else
{
ReturnMessage = BuildMessageNLS("DELVidCtlReportManager", "NoRulesDefinedPropagation")
propagatedStatus = 0
}
Parameters.SetAttributeString("Message",ReturnMessage)
Parameters.SetAttributeInteger("Severity" , propagatedStatus)
| |||||||||||||||||||||||||||||||||||||||