- (defun C:CHANGESTYLE-TEXT-OBJECTS (/ entities len count ent ent_data ent_name new_style_name)
-
- (command "STYLE" "NAMEOFSTYLE" "" "" "" "" "" "")
- (setq entities (ssget "X" '((0 . "*TEXT")))
- len (sslength entities)
- count 0
- );setq
-
- (while (< count len)
- (setq ent (ssname entities count)
- ent_data (entget ent)
- ent_name (cdr (assoc 7 ent_data))
- );setq
-
- (setq new_style_name (cons 7 "NAMEOFSTYLE"))
- (setq ent_data (subst new_style_name (assoc 7 ent_data) ent_data))
- (entmod ent_data)
-
- (setq count (+ count 1))
- );while
-
- ;;;runs same routine again, picking up Mtext this time.
-
- );defun
-