Procedure GetLine returns two user selected points, and draws a temporary "rubberband" line when prompting for the second point. This cannot be used if there is a function anywhere in the calling chain.
PROCEDURE GetLine(
VAR p1X,p1Y : REAL;
VAR p2X,p2Y : REAL);def vs.GetLine(callback):
return none| Name | Type | Description |
|---|---|---|
| p1 | REAL | Returns coordinates of first user click. |
| p2 | REAL | Returns coordinates of second user click. |
In Python this function will NOT block execution. It will execute a callback function with the resulted line (two points as callback function parameters).
on sample is similar to the sample in GetPt.
VS Functions: GetPt | GetPtL | GetPt3D | GetPtL3D | GetLine | GetLine3D | GetRect | GetRect3D | TrackObject
Availability: from All Versions