getdist


(getdist  [ refPoint ]  [ prompt ] )

This function pauses for user input to specify a distance, optionally from refPoint.

Arguments

refPoint  (optional) reference point, 2d/3d point list, relative to current UCS; if omitted, user must also pick the first point

prompt  (optional) a prompt string to be shown; if omitted, a standard prompt is shown

Return

double, 3D distance; if refPoint is a 3d point

Example

(setq delta (getdist))
(setq delta (getdist "\n* Show the length : "))
(setq delta (getdist '(0 0 0))
(setq delta (getdist '(0 0 0) "\n* Show the length : ")

Remarks

Z coordinates of first and second point can be ignored, see (initget) function



©  Bricsys NV. All rights reserved.