sametime this routine work sametime error
what happen???
;;/////////////////////
(defun dtr (a)
(* pi (/ a 180.0)))
(defun c:tap
(setq ccol (getvar "cecolor"))
(setvar "cecolor" "192")
(setq id 3.30)
(setq anglg 2.0)
(setq pt 1)
(while (/= pt nil)
(setq pt (getpoint "\rInsert point :"))
(if (/= pt nil)
(progn
(command "circle" pt "d" id)
(setq 1angpt (polar pt (dtr 90.0) anglg))
(command "arc" "c" pt 1angpt "a" 270.0)
)
)
);while
(setvar "cecolor" ccol)
(princ)
)
what happen???
;;/////////////////////
(defun dtr (a)
(* pi (/ a 180.0)))
(defun c:tap
(setq ccol (getvar "cecolor"))
(setvar "cecolor" "192")
(setq id 3.30)
(setq anglg 2.0)
(setq pt 1)
(while (/= pt nil)
(setq pt (getpoint "\rInsert point :"))
(if (/= pt nil)
(progn
(command "circle" pt "d" id)
(setq 1angpt (polar pt (dtr 90.0) anglg))
(command "arc" "c" pt 1angpt "a" 270.0)
)
)
);while
(setvar "cecolor" ccol)
(princ)
)