[Search tip detail and code files using keywords, tip number, author name, etc ]
 
    For tip to function correctly, you must ensure that the downloaded file name matches the file name
    displayed in the Rename File To field. Please rename downloaded files when necessary.
Repeat Dist Command
Tip# 3026 By Azfar Mahmood On 18-Nov-2008
5
Rated By 1 users Downloaded : 538
Categories : Misc. User Tools
Software type : AutoCAD 2008
Rename File To : SUM_DIST.LSP
LISP command function Sum_Dist repeats the Dist command using the object snap Nea (near) for the first point and Per (perpendicular) for the second point.

Repeat Dist Command is a new twist on the familiar Distance command in AutoCAD. The LISP command function Sum_Dist repeats the Dist command using the object snap Nea (near) for the first point and Per (perpendicular) for the second point. Given the two input points, the program displays an alert box containing the current distance, a running total, and number of the distances selected. After the alert box is closed, the loop repeats until an invalid distance entry is made or until you use the Esc key to exit. Each time the routine is restarted, the cumulative distance value is reset to zero.

 

Average Rating:
5


User comments


Log In