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

CAD tip CAD tip # 4136:

Question CAD 
 %  platform  category 
Q - question

How to add thousands separators in AutoCAD numbers?

A - answer Use the LISP application by CAD Studio - srxText (see www.cadstudio.cz/download) to add digit-triplets separators to existing drawing texts/figures.

The search/replace expression for thousands separator (",") can be e.g.:

-?\([0-9]+\)\([0-9][0-9][0-9]\)
\1,\2
You may need to repeat this for millions etc. (srxText can be scripted). It will change:
1234 -> 1,234
-1234.5 -> -1,234.5

Load the VLX file with APPLOAD and type SRXTEXT. See Readme for other examples of complex text replacements.

ACADADTMapACADMMDT
100% *  CAD 
23.11.2004    9122x  
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

How to explode the 2D SOLID entities. « | » How to keep AutoCAD hatch boundary visible?

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:
Increase your productivity with our set of add-on functions for AutoCAD Civil 3D
CADstudio Civil Tools 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