Number of Curves
Input Objects
Input objects must be of the following type:
Parameters correspond to the context object.
Example
The following example shows how to determine Code(String). You can use this example to make another script in the action rule.
Let ProcessOutput(VPMReference)
Let MfgInverseBendingCurve(DELStrMfgInverseBendingCurve)
Let iIBCCount(integer)
Let bResult(Boolean)
Let bMessage(String)
set ProcessOutput = InputProcessItem.GetProcessOutput()
if(ProcessOutput <> NULL)
{
set OutputListOfFeatures = ProcessOutput.GetMfgFeatures("DELStrMfgInverseBendingCurve")
Let SizeOfList(Integer)
set SizeOfList = OutputListOfFeatures.Size()
if(SizeOfList > 0)
{
For MfgInverseBendingCurve inside OutputListOfFeatures
{
if(MfgInverseBendingCurve <> NULL)
{
iIBCCount = MfgInverseBendingCurve.NumberOfCurves
if(iIBCCount == 0 OR iIBCCount > 3)
{
bResult = FALSE
OutputListOfResults.Append(bResult)
if(iIBCCount == 0) bMessage = "NO Inverse Bending Curve created"
else if(iIBCCOunt >3 ) bMessage = " Inverse Bending Curve count greater than 3"
OutputListOfMessages.Append(bMessage)
}
else if(iIBCCount <= 3)
{
bResult = TRUE
OutputListOfResults.Append(bResult)
bMessage = " Inverse Bending Curve count is less than 3"
OutputListOfMessages.Append(bMessage)
}
}
}
}
}