General InformationThis opening ID is invoked when using the Piping Orthogonal Drawings command. Input ObjectsInput objects must be of the following types:
Output ObjectsThe output objects are as follows:
SampleThe following sample describes the generation of the cutting table. Use the sample to define the business rule in the resource set. As input to the BR is provided: VPMOccurrence of the spool.
/* Rule created by bps1 3/20/2022 */
Let ListOfNodes(List)
Let ListOfCutLength(List)
Let ListOfWeldInformation(List)
Let ListOfAnnotations(List)
Set ListOfNodes = Parameters ->GetAttributeObject("ListOfNodes")
Set ListOfCutLength = Parameters ->GetAttributeObject("ListOfCutLength")
if ( ListOfNodes <> NULL)
{
let i(Integer)
for i = 0 while i < ListOfNodes.Size()
{
Let PipNode(Real)
Let NodeCutVal(Real)
let ii(Integer)
ii = i +1
PipNode = ListOfNodes->GetItem(ii)
NodeCutVal = ListOfCutLength->GetItem(ii)
ListOfWeldInformation.AddItem("BUT",ii)
ListOfAnnotations.AddItem("CUT",ii)
}
}
Parameters ->SetAttributeObject("ListOfWeldInformation",ListOfWeldInformation)
Parameters ->SetAttributeObject("ListOfAnnotations",ListOfAnnotations)
| |||||||