[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.
Orient Lines to Slope in the Same Direction
Tip# 4448 By Kent Cooper On 30-Mar-2015
Rated By 0 users Downloaded : 219
Categories : 2D Editing, Object Properties
Software type : AutoCAD 2015
Rename File To : LinesSlopeSameDir.lsp
With this routine, you can modify multiple lines at once.

Kent Cooper shares another LISP routine he created for someone in the Autodesk forums. This routine is useful if you create lines in AutoCAD with different z elevations on each end and you use directional linetypes, such as a linetype with an arrow. This routine will allow you to modify multiple lines at once, changing the linetype orientation so that the arrowheads are either all pointing “uphill” or “downhill,” based on the z elevations on the line. After you load the LISP file, run the command LD to set the linetypes to “downhill” or run the command LU to set the linetypes to run “uphill.” Note that the directions could appear to be reversed, depending on how the arrow or other directional indicator in your linetype definition is oriented.


Average Rating:

User comments