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.
^c^c_modemacro;.;setvar;USERR1;0;
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.
Saturday, September 8, 2007
Total Length Calculation Macro for AutoCAD LT
Labels:
DIESEL,
Tips 'n' Tricks
Subscribe to:
Post Comments (Atom)

0 comments:
Post a Comment