Mr Cory
2007-10-29, 11:16 PM
A while ago i was looking for a lisp to flip objects about their own extents, no one seemed to have one which was sweet so i gave up til this morning when i had a brain storm lol works perfectly now :mrgreen: so i thought i'd share seem these forums have been such a great help.
I borrowed bits of code from a few other lisps i had so thanks to the people who helped me with them. :)
(defun c:fy ()
(setq ss1 (ssget))
(command "zoom" "o" ss1 "")
(setq pt1 (getvar "viewctr"))
(setq pt2 (polar pt1 (* pi 0.5) 1.0))
(command "mirror" ss1 "" "_non" pt1 "_non" pt2 "y")
(command "zoom" "p")
(princ))
(defun c:fx ()
(setq ss1 (ssget))
(command "zoom" "o" ss1 "")
(setq pt1 (getvar "viewctr"))
(setq pt2 (polar pt1 0 (* pi 1.0)))
(command "mirror" ss1 "" "_non" pt1 "_non" pt2 "y")
(command "zoom" "p")
(princ))
I borrowed bits of code from a few other lisps i had so thanks to the people who helped me with them. :)
(defun c:fy ()
(setq ss1 (ssget))
(command "zoom" "o" ss1 "")
(setq pt1 (getvar "viewctr"))
(setq pt2 (polar pt1 (* pi 0.5) 1.0))
(command "mirror" ss1 "" "_non" pt1 "_non" pt2 "y")
(command "zoom" "p")
(princ))
(defun c:fx ()
(setq ss1 (ssget))
(command "zoom" "o" ss1 "")
(setq pt1 (getvar "viewctr"))
(setq pt2 (polar pt1 0 (* pi 1.0)))
(command "mirror" ss1 "" "_non" pt1 "_non" pt2 "y")
(command "zoom" "p")
(princ))