.NET
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

MLeader has MText?

3 REPLIES 3
SOLVED
Reply
Message 1 of 4
C_Witt
346 Views, 3 Replies

MLeader has MText?

perhaps it's obvious and I'm just looking right past it..  But is there any way to check if a MLeader has MText?

3 REPLIES 3
Message 2 of 4
_gile
in reply to: C_Witt

Hi,

 

Are you looking for the MLeader.ContentType property ?



Gilles Chanteau
Programmation AutoCAD LISP/.NET
GileCAD
GitHub

Message 3 of 4
C_Witt
in reply to: _gile

No that just specifies what should be there, not if it is.

 

or am I misunderstanding that variable?

Message 4 of 4
_gile
in reply to: C_Witt

If MLeader.ContentType equals ContentType.MTextContent, the content is a MText (possibly null or empty), then, check the MText.Text with String.IsNullOrWhiteSpace() method.



Gilles Chanteau
Programmation AutoCAD LISP/.NET
GileCAD
GitHub

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report

”Boost