AutoLISP: Text Calculator by LM

Last Spring, I asked Lee Mac for a program to help me with my job at the time and he delivered. You can find the program here.

What it does is allow you to select various text objects whether they be DTEXT, MTEXT, Attributes… and then a simplified graphical calculator appears that lets you select a mathematical function (Add, Subtract, Multiply, Divide). then you select the next numerical text object and so on… When you are finished, you can place the total of the mathematical functions as a text object.

TC <enter> to start

The original source code can be found [here]. It is better to redirect you to the source code in case there are any updates, changes or improvements to the Lisp routine at Lee’s site, it is just easier to keep track of.

http://www.lee-mac.com/textcalculator.html

Advertisement

About AutoCAD Tips

This blog serves as a knowledge base for myself (and anyone else) so that I can reference tips & tricks that I have learned and also refer others to it as well. I hope that this blog helps you learn at least one tip to make your drafting/design experience better.
This entry was posted in Attributes, AutoLISP, AutoLISP: Attributes, AutoLISP: Text, Blocks, Text, TIPS. Bookmark the permalink.

2 Responses to AutoLISP: Text Calculator by LM

  1. Troy Dawes says:

    Love it, only one request…Is there a way to have the result entered into the existing text?

  2. olos says:

    it’s good calculator in drawing ,can you make an option select all and give the result , thanks

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s