- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I'm trying to select all blocks in my drawing with "MIR" in the block name, then change the X Scale of all of those blocks from 1 to -1, then explode those same blocks.
If there is a better way to mirror those same blocks about their individual insertion points in the X-axis, that will work too. I'm just wanting to keep all blocks in their original place, as they need to land in pre-existing viewports that will have been set up.
So far I have this, but it mirrors all of my blocks over the same point. Any help would be greatly appreciated!
;MIRRORS ALL BLOCKS WITH "MIR" PREFIX IN NAME
(defun c:M-ONLY (/ SS1)
(setq SS1 (ssget "X" (list '(0 . "INSERT") (cons 2 "*MIR*"))))
(command "_.MIRROR" ss1 "" "_non" (trans (cdr (assoc 10 (entget (ssname ss1 0)))) 0 1) "_non" "@0,1" "_Yes")))
(princ)
)
Solved! Go to Solution.