*NICE* So far, just gonna use the while to avoid the existing-block conflict Thanks-much!
Oops now, and really nothing important is:
allowing typical polyline construction and finishing cleanly.
Still can see this useful as-is. The ones I'll probably use are
the circle and rectang of the same which work so well.
(defun c:rbn ( / nbn nob tlp) ;; makes rect block without 'name proofer'
(princ "\n Rectangle -> Block w/Rotation <name>..")
(setvar 'cmdecho 0)
(setq nbn (getpoint "\n Corner Point <second is base>"))
(command "_.rectang" nbn "\\")
;(setq nob (getstring "\n Name: "))
(while
(and
(/= "" (setq nob (getstring "\nName of Block < enter to exit > : ")))
(cond
((tblsearch "BLOCK" nob)
(alert
(strcat "Block name < " nob " > is already used. Try again")
)
t
)
(t (setq mov t) nil)
)
)
)
;; proof/correct/re-loop for usable block name <<<<<<<<<
(setq tlp (getvar 'lastpoint))
(command "-block" nob tlp "_L" "")
(command "-insert" nob tlp 1 "")
(setvar 'cmdecho 1)
(princ)
)