Message 1 of 6

Not applicable
03-07-2016
10:11 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I'd like to change the text style names in the same way that the lisp below changes layer names but am not sure how to access the text style table?
ie changing AQ_DIMS to SLD DIMS text style.
(defun C:LyrSub (/ LAY OBJ STR1 STR2 STR3 STR4)
(setq STR1 "AQ "
STR2 "SLD ")
(vl-load-com)
(vlax-for OBJ
(vla-get-layers
(vla-get-activedocument
(vlax-get-acad-object)
)
)
(setq LAY (vla-get-name OBJ)
LAY (vl-string-subst STR2 STR1 LAY)
)
(if (not (tblsearch "LAYER" LAY))
(vl-catch-all-apply
'vla-put-name (list OBJ LAY)
)
)
)
)
Solved! Go to Solution.