Context Object Parameters
Parameter Name | Type | Read/Write | Comments |
---|
Radius | Real |
Write | Corresponds 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 )