Language Reference Guide : 4. System Classes : SegmentShape Class : SetEndPoints Method
 
Share this page                  
SetEndPoints Method
The SetEndPoints method sets all the end points for the SegmentShape object in one operation.
This method has the following syntax:
SegmentShape.SetEndPoints(Point1X = integer, Point2X = integer,
          Point1Y = integer, Point2Y = integer)
When you want to set all the end points at once, using the SetEndPoints method is much more efficient than setting the individual attributes directly. The four parameters have the same names and meanings as the corresponding attributes of the SegmentShape. OpenROAD assumes a default value of zero for any parameter that you do not specify.
For an example of the use of SetEndPoints method, see the discussion of dynamic programming in the Programming Guide.