General InformationThis 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.
Input ObjectsInput objects must be of the following types:
Context Object Parameters
SampleThe 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 ) | |||||||||||||||||||||