How to calculate the (Sum, multiply, and subtract) of Text Values in AutoCAD using an AutoCAD Lisp

How to calculate the Text Values in AutoCAD?

Are you an AutoCAD user? If so, you may have faced situations where you need to perform arithmetic operations on text values. However, the default commands in AutoCAD do not allow you to do this, as they only work with numerical values, not text values. Don't worry, there are solutions to this problem.

Introduction to AutoCAD.

There are AutoCAD plugins and third-party applications that you can use to perform arithmetic operations on text values. By using these tools, you can work more efficiently and save a lot of time and energy. In this blog post, I will show you how to use a LISP routine, which can calculate the sum, product, or difference of text values in your drawing.

What is the AutoCAD LISP and how do you upload it to AutoCAD?

This LISP allows the user to perform arithmetical operations on numerical data within text. The user is prompted to select text containing numerical data and then either choose an arithmetical operation or place the result of the current calculation in the form of an MText object in the drawing.

After you have uploaded the LISP file, you need to type 'TC' to activate it.

Then select text containing numerical data.

Choose your process.

Finally, place the result.

You can download the lisp from here.

Comments