Compute Additional Length for the Conductor Related to its Route (EWR_ComputeAdditionalRouteLength)

An opening ID is an entry point used to customize business logic. The Compute additional length for the conductor related to its route opening ID is used to add an extra length to conductors routed in bend portions.

Important: The computation is enabled by the knowledge method Conductor.GetRouteBendInformation(). This method exposes information about conductors' bends. For more information, see Electrical 3D Design User's Guide: Reference Information: Knowledge Packages: Electrical Methods.

This opening ID is available in the Electrical physical system design resources resource set.

Note: For more information about customization by business rules, see Installation and Setup: Customize: Behavior: Data Setup: Customization by Business Rules.

This page discusses:

General Information

This 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.

PLM Opening ID: EWR_ComputeAdditionalRouteLength
Customization intent: Computation
Execution context:Client

Input Objects

Input objects must be of the following types:

  • ThisObject: corresponds to the conductor
  • Parameters corresponds to the context object.

Context Object Parameters

Parameter NameTypeRead/WriteComments
Returned valueLengthWriteCorresponds to the additional length.

Sample

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