Sunday, December 6, 2009

How to add thousands separators in AutoCAD numbers?

Use the LISP application by XANADU - srxText (www.xanadu.cz/developuk) 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

No comments:

Post a Comment