Message 1 of 8

Not applicable
12-12-2019
05:11 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I need to move all circles on the page to a new point.
My current code is something like this:
(setq newCenter (getpoint "new center:"))
(setq circles (ssget "_X" '((0 . "CIRCLE")))) (setq n (sslength circles)) (setq x 0) (repeat n (setq name (ssname circles x)) (setq circle (entget name)) (setq center (cdr (assoc 10 circle)))
(setq circle (subst '(10 . newCenter) '(10 . center) circle))
(entmod circle)
(setq x (+ 1 x))
)
But, for some reason, it doesn't work. Need help!
Solved! Go to Solution.