[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.
Instant Arrowheads
Tip# 3232 By Val Newfield On 12-Jul-2009
3.166665
Rated By 6 users Downloaded : 2884
Categories : 2D Operations
Software type : AutoCAD 2010
Rename File To : ahl.lsp
This routine instantly draws arrowheads on a selected line.

CAD instructor Val Newfield gives us a routine that instantly draws arrowheads on the end of a selected line. Val says that students draw vector diagrams in AutoCAD and need to put arrowheads on the lines at any angle.

"I wrote the tiny LISP routine, AHL.LSP, so they can put the arrowheads on quickly. It works with any version of AutoCAD, and puts the arrow on the end of the line nearest the pick point."

Notes from Cadalyst Tip Patrol: This routine instantly draws arrowheads on a selected line, but it won’t work on polylines or arcs. Load the routine, type AHL on the command line, pick your line (near the end where you want the arrowhead), and then type in your size. The size will be the length of the arrowhead. It draws a solid that you can grip edit later if you want to and it is drawn on the current layer.

 

Average Rating:
3.166665


User comments
Comment by blah,blah
Posted on 2009-07-13 13:40:34
why not just use a leader?
Comment by Balusek,Rosie
Posted on 2009-07-13 14:05:41
didn't work.
Comment by Eaton,Nancy
Posted on 2009-07-13 22:42:21
Sorry, but if a user in my office tried to use this he would have to do it all over again using multileaders or leaders. It's may be a nice piece of code, but it goes against our company standards.
Comment by Benton,Brian
Posted on 2009-07-15 20:43:23
I understand what you are saying. If your intent is a leader, then yes, please use a leader. But some times you aren't creating a leader, but you need an arrow on a line and you don't want a dimension style to influence that arrow. This routine draws it quickly enough. You could use a leader, but then you have more than the arrow head to deal with. It's uses may or may not be limited, but it works as intended.
Comment by Ayles,Mark
Posted on 2009-07-16 15:41:26
Works in paper space only. The arrows went off into space in model space.