@jtm2020hyo wrote:
....
What about RTEXT , DTEXT ?
Do I need to add those to code like this? :
(setq T_Selection (ssget '((0 . "TEXT,MTEXT,RTEXT,DTEXT"))))
@Frjuniornogueira wrote:
RTEXT is an Express Tool so it will not work.
------------------
First of all, there is no such entity type as DTEXT. It's an old command name from w a y , w a y back, but the TEXT command for many years now has done what DTEXT does [I think the DTEXT command name is only kept around for legacy reasons], instead of working the way TEXT used to work when DTEXT was first introduced to overcome some of TEXT's original limitations [primarily, not seeing what you were getting until you finished entering the content -- the D is for Dynamic, meaning it appears on-screen as you type]. But throughout history, the entity type made by the DTEXT command was and is just TEXT -- DTEXT not only isn't now, but has never been, an entity type in AutoCAD, so forget about including it in an (ssget) filter list.
Secondly, the RTEXT operation [to add some to a drawing] may be an Express Tool, but the resulting entity in the drawing has Rotation just like anything else -- it has a Rotation VLA Property, and an (assoc 50) entry in entity data -- so a routine that Rotates things should be able to work with Rtext just as it does with Blocks and Text and Mtext.
Without having studied the suggested routine in detail, I will hazard a guess that you should be able to do:
(setq T_Selection (ssget '((0 . "*TEXT"))))
and cover all bases.
Kent Cooper, AIA