Piping Orthogonal Cutting Table Information

An opening ID is an entry point used to customize business logic. The Piping ORTHO Spool business rule - Cutting table opening ID is used while generating the cutting table.

Note: For more information about customization by business rules, see Customization by Business Rules.

This page discusses:

General Information

This opening ID is invoked when using the Piping Orthogonal Drawings command.

Input Objects

Input objects must be of the following types:

  • ThisObject: FactType ProductOccurrence (=spool occurrence)
  • Parameters corresponds to the context object.
    • ListOfNodes - Number of nodes
    • ListOfCutLength - Value from the table

Output Objects

The output objects are as follows:

  • ListOfWeldInformation
  • ListOfAnnotations

Sample

The 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)