Text Calculator

Function Syntax TextCalc / TC
Current Version 1.0
Download TextCalcV1-0.lsp
View HTML Version TextCalcV1-0.html

Program Description

This program allows the user to perform arithmetic operations on text containing numerical data, placing the result of such calculations as an MText object in the drawing.

After loading, the program can be called from the AutoCAD command line with either TextCalc or the abbreviation TC. The user is then prompted to select an object containing text with numerical data; this object may be Single-line Text, Multi-line Text, a Dimension, Multileader or Attribute.

If the text of the selected object contains multiple numbers, the user is prompted to choose the number to use in subsequent calculations. After selection, the user is presented with a dialog interface from which an arithmetic operation may be selected or the result of the calculations so far may be placed in the drawing.

This program also uses my Get True Content subfunction to facilitate calculations on formatted MText.

Instructions for Running

Please refer to How to Run an AutoLISP Program.


increase · reset · decrease

Designed & Created by Lee Mac © 2010