Roll Business Rule (EHFLiveManipulator_ComputationRadiusofRoll)

An opening ID is an entry point used to customize business logic. The Roll business rule opening ID enables to compute the minimum bend radius of a segment.

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 when using the Roll command.

This opening ID is used to customize the minimum bend radius of a segment. If the minimum bend radius is reached, a symbol appears and the roll is not applied. In such scenario, if you click in the background to validate the roll, the minimum bend radius is not kept, the roll is not applied, and the segment retrieves its original position.

Note: By default, this value is twice the bend radius of the branch.

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

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

Input Objects

Input objects must be of the following types:

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

Context Object Parameters

Parameter NameTypeRead/WriteComments
RadiusReal WriteCorresponds to the roll radius value.

Sample

The following sample describes how to compute the minimum allowable bend radius during the rolling of a segment.

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

// variables declaration
let MinimumRollRadius(LENGTH)
let SelectedSegment(Segment)
let SegmentBendRadius(LENGTH)

// variables initialization
set MinimumRollRadius = 20mm
set SelectedSegment=ThisObject

// retrieve the segment bend radius value
SegmentBendRadius = SelectedSegment.Elec_Bend_Radius

// force the minimum roll radius to 2xsegment bend radius
MinimumRollRadius = 2*SegmentBendRadius
MinimumRollRadius = MinimumRollRadius +0.1mm //

Parameters.SetAttributeReal("Radius", MinimumRollRadius )