Junction Management Business Rule (EHFArrangedJunction_ComputationLengthToleranceForOwningSegments)

An opening ID is an entry point used to customize business logic. The Junction Management business rule opening ID is used to add Length Tolerance on segments at junction that have been arranged at junction in the Electrical 3D Design app (see Arranging Segments at Junction scenario). This Length Tolerance is also taken into account during the Synchronize command in the Electrical Manufacturing Preparation app.

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 after the Flatten and Synchronize commands. See the Electrical Manufacturing Preparation User's Guide.

The business rule can either:

  • Add the Length Tolerance (severity=0)
  • Raise a warning and the operation can continue (severity=1)
  • Raise an error and the operation is undone (severity=2)

The table below provides you with information related to the definition of the Opening ID.

PLM Opening ID: EHFArrangedJunction_ComputationLengthToleranceForOwningSegments
Customization intent: Validation
Execution context:Client

Input Objects

Input objects must be of the following types:

  • ThisObject: Electrical segment from the 3D flattened view.
  • Parameters corresponds to the context object. Standard context and message attribute are displayed in a warning if the validation fails.
  • Validation: Variable to set to know if the validation succeeded or failed.
  • Severity information:
    • Severity= 0 the treatment is to be continued (no message)
    • Severity= 1 the treatment is to be continued and only a warning raised.
    • Severity= 2 the treatment is supposed to be undone.
  • Message: an attribute is displayed in a window (warning or error depending on the severity) if the validation fails.

Context Object Parameters

Parameter NameTypeRead/WriteComments
OffsetDistanceReal Read It is a double value representing the diametrical offset distance of the segment from the source segment.
ArrangedJunctionLTValueRealWrite It is a double value providing the Length Tolerance value that should be applied to the segment under consideration.

Sample

The following sample explains how to use an opening ID to add Length Tolerance on segments at junction.

/* CATRule signature (do not edit) : (ThisObject : #InSegment, Parameters : #In RuleContext) : #Void */

let LengthTolerance(REAL)
let OffsetDist(REAL)
let LengthBNS(REAL)

OffsetDist = 0.0
LengthTolerance = 0.0

OffsetDist = Parameters.GetAttributeReal("OffsetDistance")

LengthTolerance = OffsetDist * 2

Parameters.SetAttributeReal("ArrangedJunctionLTValue",LengthTolerance)