change all text to a different textstyle

change all text to a different textstyle

Baker_ADG
Advocate Advocate
872 Views
4 Replies
Message 1 of 5

change all text to a different textstyle

Baker_ADG
Advocate
Advocate

Okay, I have searched Google and this site.. I cannot really find what i need. Maybe i'm blind.. 

 

I have Mtext, Dtext, and attributes with "textstyle1" I need to change the style to "textstyle2" 

 

I have found the closest thing to what i need in the link below, however, it does not change attributes.

https://autocadtips1.com/2014/02/06/autolisp-change-text-styles/ 

 

 

Please help, I'd like to run this in the start up lisp. thanks. 

 

Jon Baker | Land Development & Infrastructure Design Manager
Alignment Design Group | Denver | Colorado
Civil 3D 2025 | Windows 11
0 Likes
873 Views
4 Replies
Replies (4)
Message 2 of 5

cadffm
Consultant
Consultant

It is simple with the a small tool, right. But without such a tool you can also use CAD STANDARDS to do this or  in file without a style "&textstyle2", just RENAME the style.

Sebastian

0 Likes
Message 3 of 5

Baker_ADG
Advocate
Advocate

that wont work.. I need to change from "Standard" to "Arial" 

Jon Baker | Land Development & Infrastructure Design Manager
Alignment Design Group | Denver | Colorado
Civil 3D 2025 | Windows 11
0 Likes
Message 4 of 5

pendean
Community Legend
Community Legend
How/why does the routine you found not work with attributes exactly?
Or are these inside C3D custom objects? That seems to be the flaw identified in the article.

Show us, post a DWG file with the problem.




0 Likes
Message 5 of 5

Kent1Cooper
Consultant
Consultant

@Baker_ADG wrote:

.... I need to change from "Standard" to "Arial" 


If you really mean all such text-containing things, just change the definition  of the "Standard" Style to be like the "Arial" Style [use the font, etc., assigned to it].  You may need to REGEN or REGENALL for the change to take effect in everything, and be aware that some things could be affected in a way that will require you to peruse everything [Mtext with word wrappings happening in different places, and possibly different numbers of lines, Dimensions with text thrown outside the extension lines or the other way, etc.].  Also be aware that some of those things can have internal font overrides that re-defining the outer Style won't eliminate.

Kent Cooper, AIA
0 Likes