JeepMaster Posted January 11, 2010 Posted January 11, 2010 I'm trying to figure out how to select a group of leaders and manually change the arrowhead size by a certain factor. This is somewhat of a continuation from the results of this thread. http://www.cadtutor.net/forum/showthread.php?t=43478 The sclall.lsp from LeeMac is good. I just need to select the leaders afterwards and manually change the arrowhead size by a set factor. So if I can figure out another lisp that will resize the arrowhead size, that would save me a few more steps than doing the properties menu method. Thanks. Quote
Lee Mac Posted January 11, 2010 Posted January 11, 2010 Try this: (defun c:aSze (/ *error* scl uFlag ActiveSelSet) (vl-load-com) (setq doc (cond (doc) ((vla-get-ActiveDocument (vlax-get-Acad-Object))))) (defun *error* (msg) (and uFlag (vla-EndUndomark doc)) (or (wcmatch (strcase msg) "*BREAK,*CANCEL*,*EXIT*") (princ (strcat "\n** Error: " msg " **"))) (princ)) (if (and (setq scl (getreal "\nSpecify Scale Factor: ")) (ssget "_:L" '((0 . "*LEADER")))) (progn (setq uFlag (not (vla-StartUndoMark doc))) (vlax-for object (setq ActiveSelSet (vla-get-ActiveSelectionSet doc)) (vlax-put-property object 'ArrowHeadSize (* (vlax-get-property object 'ArrowHeadSize) scl))) (vla-delete ActiveSelSet) (setq uFlag (vla-EndUndoMark doc)))) (princ)) Quote
JeepMaster Posted January 11, 2010 Author Posted January 11, 2010 That is awsome Lee. Exactly what I wanted. Thanks so much. LeeMac to the rescue...AGAIN. Quote
Lee Mac Posted January 11, 2010 Posted January 11, 2010 That is awsome Lee. Exactly what I wanted. Thanks so much. LeeMac to the rescue...AGAIN. You're welcome Jeep Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.