CAD Forum - Database of tips, tricks and utilities for AutoCAD, Inventor and other Autodesk products [www.cadforum.cz]
CZ | EN | DE
Login or
registration
  Visitors: 10382
RSS channel - CAD tips RSS tips
RSS discussions

Discussion Discussion forum

 

HelpCAD discussion

 
CAD Forum - Homepage CAD discussion forum - ask any CAD-related questions here, share your CAD knowledge on AutoCAD, Inventor, Revit and other Autodesk software with your peers from all over the world. To start a new topic, choose an appropriate forum.

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.
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Topic Closedmodifying text globally

 Post Reply Post Reply
Author
rmmllla View Drop Down
Newbie
Newbie


Joined: 05.Mar.2011
Location: United States
Using: autocad2009
Status: Offline
Points: 1
Direct Link To This Post 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.
Back to Top
CarlB View Drop Down
Senior Member
Senior Member


Joined: 16.Oct.2009
Location: United States
Status: Offline
Points: 321
Direct Link To This Post 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-
 
Back to Top
Vladimir Michl View Drop Down
Moderator Group
Moderator Group

Arkance Systems CZ

Joined: 26.Jul.2007
Location: Czech Republic
Using: Autodesk software
Status: Offline
Points: 2018
Direct Link To This Post 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
Back to Top

Related CAD tips:


 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down



This page was generated in 0,367 seconds.