General InformationThis opening ID is invoked during the computation of a conductor length. The table below provides you with information related to the definition of the Opening ID.
Input ObjectsInput objects must be of the following types:
Context Object Parameters
SampleThe following sample illustrates how to use the knowledge method Conductor.GetRouteBendInformation() in the business rule. /* Declare list variables */
Let listAngle(LIST)
Let listEntrySegment(LIST)
Let listExitSegment(LIST)
/* call knowledge method on the conductor */
ThisObject.GetRouteBendInformation(listAngle, listEntrySegment, listExitSegment)
/* Count number of angles */
Let nbBend(Integer)
set nbBend = listAngle.Size()
/* Add extra length following the number of bend found on the conductor*/
Let extraLength (LENGTH)
set extraLength = 100mm * nbBend
/* Store variable extralength in attribute "AdditionalLength" of the Business rule*/
Parameters.SetAttributeReal("AdditionalLength",extraLength)
| ||||||||||||||||||||||