As the above title implies, I am working on a ucs lisp that will rotate my ucs based on object selected. However I am not sure how to ensure it rotates correctly when using lisp. (Ucs will rotate to nearest selected end when selected manually)
(defun c:cs ()
(command "ncopy" pause "" "0,0" "0,0")
(setq dummy (entlast))
(command "ucs" "ob" dummy "plan" "current")
(command "zoom" "o" dummy "")
(command "erase" dummy "")
(princ)
)
(defun c:cs1 ()
(command "ucs" "w" "plan" "current")
(princ)
)
Besides that how do I remember my last zoomed position to reset the ucs?
best regards