CAD Forum - tips, tricks, discussion and utilities for AutoCAD, Inventor, Revit and other Autodesk products [www.cadforum.cz] ARKANCE | CONTACT - CZ | SK | EN | DE
Over 1.091.000 registered users (EN+CZ). AutoCAD tips, Inventor tips, Revit tips. Try the new precise Engineering calculator. New AutoCAD 2026 commands and variables.
Plex.Earth connects AutoCAD and Google Earth
RSS channel - CAD tips RSS tips
RSS discussions

Discussion Discussion forum

?
CAD discussions, advices, exchange of experience

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.
This is a peer-to-peer forum. The forum doesn't replace the official direct technical support provided by ARKANCE for its customers.
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: 2098
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 - https://arkance.world - Autodesk Platinum Partner
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,242 seconds.