MLEADER STYLE CONFUSION

MLEADER STYLE CONFUSION

john.uhden
Mentor Mentor
624 Views
8 Replies
Message 1 of 9

MLEADER STYLE CONFUSION

john.uhden
Mentor
Mentor

How can an MLeader have a multileader style that is not in the list of multileader styles?

It appears to have obtained its style name from an Mtext converted to an Mleader.

I am wanting to update my MakeCurrent.lsp to include setting CMLSTYLE by selection.

John F. Uhden

0 Likes
Accepted solutions (3)
625 Views
8 Replies
Replies (8)
Message 2 of 9

dbroad
Mentor
Mentor

Post the drawing.

Architect, Registered NC, VA, SC, & GA.
0 Likes
Message 3 of 9

john.uhden
Mentor
Mentor

Good idea, Doug.

See the fat dashed magenta pellipse surrounding the example of confusion.

John F. Uhden

0 Likes
Message 4 of 9

pendean
Community Legend
Community Legend
Accepted solution

@john.uhden wrote:

How can an MLeader have a multileader style that is not in the list of multileader styles?


Someone before you had two different mleaders: instead of editing one of them, they opted to delete the arrow from one, nd the text from the other. Then slid-them close to each other. Unfortunate, but not mysterious.

 

pendean_0-1667418878348.png

 

pendean_1-1667418924989.png

 

 

Message 5 of 9

john.uhden
Mentor
Mentor

@pendean 

Many thanks for your interest.

1st, I have no one to blame but myself.

But did you notice in the properties that its StyleName is "E80A?"

There is no MLStyle by that name, that I could find anyway.

John F. Uhden

0 Likes
Message 6 of 9

ВeekeeCZ
Consultant
Consultant
Accepted solution

No issues here (C3D 2020)

 

BeekeeCZ_0-1667458394755.png

 

  (defun :dictlist (name / lst)
    (vlax-for dict (vla-get-dictionaries (vla-get-activedocument (vlax-get-acad-object)))
      (and (vlax-property-available-p dict 'name)
	   (= (vla-get-name dict) name)
	   (vlax-for itm dict
	     (setq lst (cons (vla-get-name itm) lst)))))
    lst)

 

Message 7 of 9

dbroad
Mentor
Mentor
Accepted solution

As @pendean said, there are 2 mleaders that appear to be one. They both have the same mleader style E80A.  One mleader just contains text without a leader and the other is just a leader without a note. I can see the E80A mleader style in the ribbon and can set it as current.

When you click in the mleader style drop down component of the ribbon, you may have to scroll up to the top.  If you use the mleaderstyle command, you will see it in that list.

Architect, Registered NC, VA, SC, & GA.
Message 8 of 9

dbroad
Mentor
Mentor

This is one way to check to see if a multileaderstyle exists in the drawing:

 

 

;;;MLDRSTYLE returns the dictionary entry for the mleaderstyle
;;;Accepts a single string argument for style name.
;;;Returns the legacy type dictionary entry if it exists
;;;D. C. Broad, Jr.
;;;5/22/2021
    (defun mldrstyle (style / temp)
      (dictsearch
	(cdr
	  (assoc -1 (dictsearch (namedobjdict) "ACAD_MLEADERSTYLE"))
	  )
	style
	)
      )

 

If called with (mldrstyle "e80a") in your drawing, it returns: ((-1 . ) (0 . "MLEADERSTYLE") (5 . "18040") (102 . "{ACAD_.....)

Architect, Registered NC, VA, SC, & GA.
0 Likes
Message 9 of 9

john.uhden
Mentor
Mentor

@pendean , @dbroad , @ВeekeeCZ ,

Today I consider myself the stupidest man on the face of the earth.

Thank you all!

John F. Uhden

0 Likes