AutoCAD LISP - GETDISTWhat links here?
(getdist [pt] [msg]) 


The user can specify the distance by selecting two points, or by specifying just the second point, if a base point is provided. The user can also specify a distance by entering a number in the AutoCAD current distance units format. Although the current distance units format might be in feet and inches (architectural), the getdist function always returns the distance as a real.

The getdist function draws a rubber-band line from the first point to the current crosshairs position to help the user visualize the distance.

The user cannot enter another AutoLISP expression in response to a getdist request.

Arguments

Return Values

A real number. If a 3D point is provided, the returned value is a 3D distance. However, setting the 64 bit of the initget function instructs getdist to ignore the Z component of 3D points and to return a 2D distance.

Examples

(setq dist (getdist)) 
(setq dist (getdist '(1.0 3.5))) 
(setq dist (getdist "How far ")) 
(setq dist (getdist '(1.0 3.5) "How far? "))
AutoCAD LISP - GETDIST
MC6802 - instruction set - Store Accumulator
programming - javascript - event handlers
programming - lisp
tk - tk_label
bible - random notes - son of man
filename:AutoCAD LISP - GETDIST
filename:AutoCAD%20LISP%20%2D%20GETDIST
last edit:September 02 2012 17:13:00 (4276 days ago)
ct = 1716091865.000000 = May 19 2024 00:11:05
ft = 1346620380.000000 = September 02 2012 17:13:00
dt = 369471485.000000