Procedure GetLine3D returns two user selected points, and draws a temporary "rubberband" 3D line when prompting for the second point. This cannot be used if there is a function anywhere in the calling chain.
PROCEDURE GetLine3D(
VAR p1x, p1y, p1z : REAL;
VAR p2x, p2y, p2z : REAL;
useWP : BOOLEAN);def vs.GetLine3D(useWP, callback):
return None| Name | Type | Description |
|---|---|---|
| p1x, p1y, p1z | REAL | Returns coordinates of first user click. |
| p2x, p2y, p2z | REAL | Returns coordinates of second user click. |
| useWP | BOOLEAN | TRUE if the returned point have to be on the active Working Plane. Snapping to arbitrary 3D geometry will produce vertical projection result on the WP; FALSE if the point can be arbitrary 3D point (produced, for example, by snapping to a 3D geometry) |
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 Vectorworks 2010