Jump to content

Recommended Posts

Posted

Hey all.

One of my co-workers asked me if I knew a way to have a toolbar with 2 different leader lines to select, One leader line with arrow head and the other leader line with a loop on it.

She told me it was a pain each time just to change the the arrow head to loop.

She wanted a toolbar to select from to select leader line with arrow head or loop.

:D

dose anyone know of a lisp routine or would it be just as easy as writing a script file?

Posted

You mean something like this:

 

(defun c:ARROW (/ ss)
 (vl-load-com)
 (if (setq ss (ssget '((0 . "LEADER"))))
   ((lambda (i / e v)
      (while (setq e (ssname ss (setq i (1+ i))))
        (if (= 0 (vla-get-arrowheadtype (setq v (vlax-ename->vla-object e))))
          (vla-put-arrowheadtype v 7)
          (vla-put-arrowheadtype v 0))))
     -1))
 (princ))

 

 

Edit:

This will handle multiple selections, and will toggle back and forth between "Default" and "Origin" arrow heads.

Posted

That lisp routine will work, But I also found the Multileader line toolbar in AutoCAD 2008.

Thanks RenderMan

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...