(defun c:Poly ( / a)
(command "._3dpoly")
(while (eq 1 (logand 1 (getvar "cmdactive")))
(if a (setq a (getpoint a "\n Pick Point: "))
(setq a (getpoint "\n Pick Point: "))
)
(if a
( cond
(setq e (car (entsel "\nNew Elevation, Select TEXT object [Return for KB input]: ")))
(setq elist (entget e))
(setq elev (read (cdr (assoc 1 elist))))
(command (list (car a) (cadr a) elev))
(command)
)
)
)
(princ)
)
this is code but that does not work