Message 1 of 5
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
We have a .lsp that was written several years ago and is now not working as it use to. This routine draws a pline from a specific point with a arc or loop on the end instead of an arrow. For some reason when you place "pt3" on the drawing "pt4" places automatically drawing a line instead of canceling the command. Here is the routine; (defun rtd (a) (/ (* a 180.00) pi) ) (defun c:aldr (/ multi lth dir pt1 pt2 pt3 pt4 ) (setq multi(getvar "dimscale")) (setq lth (* 0.0625 multi)) ;(command "osnap" "nea") (setq pt1 (getpoint "\nLeader start: ")) ;(command "osnap" "off") (setq pt2 (getpoint pt1 "\nNext point: ")) (setq dir (+ 90.0 (rtd (angle pt1 pt2)))) (setq pt3 (polar pt1 (angle pt1 pt2) lth)) (setq pt4 (polar pt1 (angle pt2 pt1) lth)) (command ".pline" pt3 "w" 0 0 "a" "d" dir pt4 "l" pt2) )
Solved! Go to Solution.