CAD Forum - tips, tricks, discussion and utilities for AutoCAD, Inventor and other Autodesk products [www.cadforum.cz]
Cesky English Deutsch
Login/Register:
 Visitors: 3804 

CAD tip CAD tip # 3229:

Question CAD 
 %  platform  category 
Q - question

How to replace texts in many AutoCAD drawings? (regular expressions)

A - answer To search and replace substrings or complete texts in an AutoCAD drawing, including an option to use scripts and replace texts (and dimtexts and attribute texts) in many DWG files at once, you can use the free/trial CADstudio's utility - srxTEXT. For search and replace you can also use regular expressions and perform even complex text replacements of the type:

D19-457-03667 --> Part:457/03667 Code:D19

or add strings to the beginning or to the end of your texts or individual words, or replace only a single/first occurrence of a substring, etc.

You can also use scripts to replace texts in multiple drawings (batch mode). Replace strings defined by search-replace pairs loaded from an Excel table (CSV file; the srxTextCSV command).

More details on srxText. This utility can be downloaded from www.cadstudio.cz/download, see also www.cadstudio.cz/developuk.

ACAD2009ACAD2007ACAD2004ACAD2002ADTMapMDT
100% *  CAD 
31.7.2003    32966x   FAQ  
Comments   Tell a friend

See also:
Tip 9265:RENAME on steroids - complex renaming of AutoCAD objects.
Tip 7892:How to find blocks with an empty (not-filled-in) attribute?
Tip 7890:How to find missing numbers in a series of numbered blocks?
Tip 7673:How to search/replace tabs in texts?
Tip 7241:Searching text in DWG drawings (without AutoCAD).


Back   All CAD Tips All CAD tips&tricks

iMike - a configurable 3D person for Inventor. « | » Increase quality of the printed/plotted OLE objects.

Have we helped you? If you want to support the CAD Forum web service, consider buying one of our CAD applications, or our custom software development offerings, or donating via PayPal (see above). You may also add a link to your web - like this "fan" link: CAD Forum - tips, utilities, blocks for Autodesk products
CAD:    OS:    Categ: 
Text:  FAQ glossary   



Featuring:
Export 3D VRML scenes from AutoCAD and Inventor 2015
VRMLout More info


Please use these tips at your own risk.
CAD Studio (Xanadu) is not responsible for possible problems that may occur as a result of using any of these tips.
TOPlist