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

Setting Multiline Attribute

3 REPLIES 3
Reply
Message 1 of 4
Chris_Rogers
759 Views, 3 Replies

Setting Multiline Attribute

When I manually enter the attribute, it comes up with 3 different data entry options but when I look at the attribute in .NET it shows IsMTextAttribute = FALSE.

 

What is the best way to set the multiline block attribute?

-Chris Rogers
Inventor Certified Professional
________________________________________________________
If this post helps, please click the "Thumbs up"/"Kudos"
If this post gives the solution, please click "Accept as Solution"
3 REPLIES 3
Message 2 of 4
HJohn1
in reply to: Chris_Rogers

I don't know if the way I have been updating my multiline attributes is the best way to go about it.  I have probably taken some ideas from here and there.  My biggest problem was find a way to display imperial dimensions, like say 12'-3 3/4" properly formatted with diagonal fractions.  I had to format the string prior to assign it to the contents of the mtext.  Here is how I have been doing it.  I hope it gives you some ideas and perhaps other people will suggest better ways.

 

If Att.IsMTextAttribute = True Then

	Mtxt = Att.MTextAttribute

	Mtxt.Contents = "Test"

	Att.MTextAttribute = Mtxt

	Att.UpdateMTextAttribute()

End If

           

 

Message 3 of 4
Chris_Rogers
in reply to: HJohn1

My problem is that the attribute has IsMTextAttribute = FALSE therefore, it would never do the logic inside your If statement.

-Chris Rogers
Inventor Certified Professional
________________________________________________________
If this post helps, please click the "Thumbs up"/"Kudos"
If this post gives the solution, please click "Accept as Solution"
Message 4 of 4
Hallex
in reply to: Chris_Rogers

Hi Chris

Try example from this page

http://www.acadnetwork.com/index.php?topic=265.msg463#msg463

_____________________________________
C6309D9E0751D165D0934D0621DFF27919

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