Jump to content

Landing Distance (MULTILEADER)


loudy000

Recommended Posts

Im looking for a lisp routine or variable that will uncheck the highlighted "Set landing distance" without opening dialog box? Is there a chance to do that? :) Thank you in advance. :)

 

Capture.PNG

Link to comment
Share on other sites

Consider the following function:

(defun MLeaderLandingDistance ( sty flg / dic )
   (and (setq dic (dictsearch (namedobjdict) "acad_mleaderstyle"))
        (setq dic (dictsearch (cdr (assoc -1 dic)) sty))
        (entmod (subst (cons 43 ((if flg + -) (abs (cdr (assoc 43 dic))))) (assoc 43 dic) dic))
   )
)

The above function requires two arguments: the MLeader Style to be modified and a boolean argument to determine whether the Landing Distance should be enabled or disabled.

 

For example, to enable the Landing Distance for the current MLeader Style:

(MLeaderLandingDistance (getvar 'cmleaderstyle) t)

And to disable it:

(MLeaderLandingDistance (getvar 'cmleaderstyle) nil)

Link to comment
Share on other sites

Perfect :) This is exactly what im looking for. Thank you very much Lee, now my code is working great..Cheers!

Consider the following function:
(defun MLeaderLandingDistance ( sty flg / dic )
   (and (setq dic (dictsearch (namedobjdict) "acad_mleaderstyle"))
        (setq dic (dictsearch (cdr (assoc -1 dic)) sty))
        (entmod (subst (cons 43 ((if flg + -) (abs (cdr (assoc 43 dic))))) (assoc 43 dic) dic))
   )
)

The above function requires two arguments: the MLeader Style to be modified and a boolean argument to determine whether the Landing Distance should be enabled or disabled.

 

For example, to enable the Landing Distance for the current MLeader Style:

(MLeaderLandingDistance (getvar 'cmleaderstyle) t)

And to disable it:

(MLeaderLandingDistance (getvar 'cmleaderstyle) nil)

Link to comment
Share on other sites

  • 1 year later...

My problem is how the landing distance gets randomly changed. Even though it is defined as 1/8" there are times that it gets changed to something like 19/32" and causes the landing to run into the text. Its easily fixed by selecting all and reapplying the 1/8" but its still annoying to see a leader running thru your text when you plot. This is indeed a bug that has never been addressed as this has been going on for several releases of AutoCAD over the past several years. Multi-Leaders are very handy but this bug is annoying.

Link to comment
Share on other sites

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...