Hi, I'm trying to Draw a Polyline, change it's width, than add some text, but if user decides they don't want any text they hit <enter> and we move on.
my code doesn't do that...
(defun DO_UB ()
(setq ub_loc nil)
(prompt "Draw location of Underbuild, Enter to end:")
(command "pline" )
(while (= (getvar "cmdactive") 1 ) (command pause))
(command "pedit" "l" "W" "0.2" "")
(Setvar "osmode" 0)
(Setq UB_LOC (Getpoint "\nPick text location for text"))
(if (/= UB_LOC nil)
(progn ((command "TEXT" "J" "MC" UB_LOC TXT_HT "" "xxxUB")
(command "ROTATE" "L" "" UB_LOC pause )
)
)
)
(princ)
)