Message 1 of 4
change text/mtext style INCLUDING properties

Not applicable
12-11-2019
09:13 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Same code, different problem 😕
I have this code that is suppose to change the style of text. Technically it does, but it doesn't bring over all the properties that are suppose to come with it, ie. Annotative setting and Height in particular. It seems to simply change the style name only!
(setq ss4 (ssget "X" (list (cons 0 "MTEXT")(cons 40 350.0)(cons 410 (getvar "ctab"))))) (if ss4 (progn (setq C 0) (repeat (sslength ss4) (setq entx (ssname ss4 C)) (setq ent (entget entx)) (setq ent (subst (cons 7 "RMS - 2.5mm")(assoc 7 ent) ent)) (entmod ent) (setq C (+ C 1)) ); repeat ); progn ); if
Could anybody help me understand what is happening a bit better here? I feel like if I had a better understanding i would know which parts to change...