Skip to content

Latest commit

 

History

History
45 lines (36 loc) · 1.12 KB

File metadata and controls

45 lines (36 loc) · 1.12 KB

GetLine

Description

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

Parameters

Name Type Description
p1 REAL Returns coordinates of first user click.
p2 REAL Returns coordinates of second user click.

Remarks

In Python this function will NOT block execution. It will execute a callback function with the resulted line (two points as callback function parameters).

Examples

on sample is similar to the sample in GetPt.

See Also

VS Functions: GetPt | GetPtL | GetPt3D | GetPtL3D | GetLine | GetLine3D | GetRect | GetRect3D | TrackObject

Version

Availability: from All Versions

Category