Saturday, September 8, 2007

Total Length Calculation Macro for AutoCAD LT

Before using the macro provided in this post, please note that this macro has not yet been tested in AutoCAD LT. I move forward based on the assumption that all the macro elements are acceptable in AutoCAD LT. Since I don't have LT with me, the testing part is left with the readers. This macro prompts the user to pick a first point and and second point repeatedly, and then displays the total distance in the AutoCAD status bar (Without using LISP). You have to use another simple macro to reset the settings before start using length calculation macro each time. Try the following macro and let me know whether it's useful.

*^C^C_dist;\\setvar;USERR1;$M=$(+,$(getvar,USERR1),$(getvar,DISTANCE));_modemacro;"Total Distance :"$(+,$(getvar,USERR1),$(getvar,DISTANCE));

Use the following macro to reset the status bar and system variable.


Now, you don't have to worry about drawing polylines to measure the the total distance. Most importantly, you can add distances from different locations, ie the pick points need not be continuous.


Anonymous said...

Excellent tip. BTW, I confirmed that this works on LT '08

Anonymous said...

I have no idea how to create this! Can you layout some step by step instructions?


har!s said...

I have explained the procedure of configuration in the Unleash the Double Click Power post. It may give you an idea.

Anonymous said...

we provide a wow gold or wow power leveling and wow gold

Anonymous said...

Is there a command for autocad 2015 lt? In case of a distance i can't calculate total lenght of polyline.