0 Members and 1 Guest are viewing this topic.
Hey Charles, try this --(setvar "lunits" 2)(getdist) [enter] 12' [enter]*shladdap*, rake in the face. Subtitle: Getdist's ability to accept keyed input is a function of the lunits sys var setting.
(if (or (< (getvar 'lunits) 3) (> (getvar 'lunits) 4)) (setq lunitnum (getvar 'lunits)) (setvar 'lunits 4) )(setq height (getdist "\nHeight of Wall: "))(setvar 'lunits lunitnum)
(defun distanceof ( x / result ) (vl-catch-all-apply '(lambda () (vl-some '(lambda (units) (setq result (distof x units))) (list (getvar "lunits") 4 5 2 1) ) ) ) result)