Discussion forum
CAD discussion |
Please abide by the rules of this forum.
How to post questions: register or login, go to the specific forum and click the NEW TOPIC button.
modifying text globally |
Post Reply |
Author | |
rmmllla
Newbie Joined: 05.Mar.2011 Location: United States Using: autocad2009 Status: Offline Points: 1 |
Topic: modifying text globally Posted: 05.Mar.2011 at 03:16 |
does anyone know of a way to do the following:
in a drawing, there are many text strings containing a numerical value. i want to change all the text strings with a single command or series of commands (without having to individually change them one by one) so that the original values are retained, but the numbers (numeric text string) are now enclosed inside parentheses. for example: 123.45 becomes (123.45), 543.21 becomes (543.21), 234.56 becomes (234.56), etc. |
|
CarlB
Senior Member Joined: 16.Oct.2009 Location: United States Status: Offline Points: 321 |
Posted: 05.Mar.2011 at 07:27 |
That calls for a lisp routine, or some programming aproach. Don't know of a way just using commands, such as "FIND", which is used for global text modifying.
Here's a simple one, that adds a prefix & paretheses to text entities:
Some more robust ones here, but seem to be for just a prefix or suffix, so you have to run it twice-
|
|
Vladimir Michl
Moderator Group Arkance Systems CZ Joined: 26.Jul.2007 Location: Czech Republic Using: Autodesk software Status: Offline Points: 2018 |
Posted: 06.Mar.2011 at 23:06 |
Our srxText utility can do this (see Download). Use its the "Regular expressions" option and:
search text: \([0-9\.]+\) replace text: (\1) |
|
Vladimir Michl (moderator)
Arkance Systems - arkance-systems.cz - Autodesk reseller |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |
This page was generated in 0,367 seconds.