- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I need to select a single text object to obtain it's rotation angle, then make a selection set of all text on a layer, that is at that same rotation angle, together with all blocks on another layer that are at that same rotation angle. Then rotate all the selected blocks/text to zero.
I think this gets all text on layer LTEXT -
(setq LTXTLST (ssget '((8 . "LTEXT") (0 . "text"))))
and this gets all blocks on layer LX -
(setq LXLST (ssget (list (cons 0 "INSERT")
(cons 8 "LX")
)))
at this point I'm stuck about how to extract the initial rotation angle and how to isolate a selection from the above with that rotation angle. I'm assuming it'll be using some VLA / VLAX commands (that I know very little about) within a loop that will check each object and add it to a list if it matches?
I've already got a routine that'll rotate all the objects/text about their insertion points, I just need to make the initial selection....
Thanks.
Solved! Go to Solution.