loudy000 Posted October 29, 2016 Share Posted October 29, 2016 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. Quote Link to comment Share on other sites More sharing options...
Lee Mac Posted October 29, 2016 Share Posted October 29, 2016 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) Quote Link to comment Share on other sites More sharing options...
loudy000 Posted October 29, 2016 Author Share Posted October 29, 2016 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) Quote Link to comment Share on other sites More sharing options...
Lee Mac Posted October 29, 2016 Share Posted October 29, 2016 You're welcome! Quote Link to comment Share on other sites More sharing options...
erratic Posted December 15, 2017 Share Posted December 15, 2017 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. Quote Link to comment Share on other sites More sharing options...
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.