After you change the stylename, you'll have to manually fix the size to be based on the newly chosen textstyle properties.
Registered forum members do not see this ad.
Hello everyone,
I've been trying to write a lisp routine to go through and grab all text of a specific layer and then change the Text style of that selection to a different text style. The problem I'm having is that I set-up all my text to be annotative so I need it to correctly change to the annotative scale. When I use the change command in lisp to change the textstyle it changes it to the correct style but does not regenerate (even with using regen) so the text turns into a VERY small text. If I change the text style by the drop down menu to something else and then back to the one I desire it puts it to the correct scale (can't do this for over 100 text that I have to change). Is there a lisp command to change the text style without using the command "change"? I'm not sure if this is the problem or it's just ACAD being ACAD. lol
After you change the stylename, you'll have to manually fix the size to be based on the newly chosen textstyle properties.
DropBox | finding the light...
Seann: ...it went crazy ex-girlfriend on me...
eric_monceaux...its pretty funny seeing two AutoCAD Gods give each other flak...
Actually it is better to use the "sssetfirst" function for this situation and Ctr+1 to adjust the text height of all the section set.
Code:(sssetfirst nil (ssget "_x" '((0 . "TEXT,MTEXT")(7 . "Annotative")(8 . "LAYERNAME"))))
Tharwat
Last edited by Tharwat; 24th Feb 2011 at 10:08 pm. Reason: Codes modified for better situations
I'd avoid entmod'ing annotative objects when possible. Things have a way of going crazy in some releases. Plus, what you are doing is not different than his usage of CHANGE.
DropBox | finding the light...
Seann: ...it went crazy ex-girlfriend on me...
eric_monceaux...its pretty funny seeing two AutoCAD Gods give each other flak...
Yeah ..... the main bad issue for the Annotative texts is the text height of it.
DropBox | finding the light...
Seann: ...it went crazy ex-girlfriend on me...
eric_monceaux...its pretty funny seeing two AutoCAD Gods give each other flak...
I mean if a drawing has multiple text heights of annotative text style , that's definitely would let texts go crazy when changing heights .
DropBox | finding the light...
Seann: ...it went crazy ex-girlfriend on me...
eric_monceaux...its pretty funny seeing two AutoCAD Gods give each other flak...
OK.
So how to step through the Text heights of Annotative text height in a selection set ?![]()
Registered forum members do not see this ad.
DropBox | finding the light...
Seann: ...it went crazy ex-girlfriend on me...
eric_monceaux...its pretty funny seeing two AutoCAD Gods give each other flak...
Bookmarks