getangle


(getangle  [ point ]  [ prompt ] )

This function pauses for user input to specify an angle (in radians).

Arguments

point  (optional) a 2d reference point; if specified, it is used as starting point for the rubberband; if omitted, '(0 0) is used

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

Return

the angle in radians (double)

Example

(getangle)
(getangle '(1 1 0))
(getangle '(1 1 0)) "\n* Show angle : ")
(getangle "\n* Show angle : ")

Remarks

(getangle) respects ANGBASE system variable;
point is relative to current UCS;
angle is always measured against the 0 reference angle;
see (initget) function



©  Bricsys NV. All rights reserved.