MText height not working

steve.walko
Participant
Participant

MText height not working

steve.walko
Participant
Participant

Its been a while since I've use AutoCad.

This particular version is 2019.

When I write the code using c# to insert MText into a drawing the text height goes to the default of 0.2

I'm guessing I have to check a box on/off somewhere but can't for the life of me find it.

So I'm asking you guys, Is it a code thing?

Is it a user preferences thing?

 

Below is the code I used as well as the results.

 

stevewalko_1-1640183260883.png

 

stevewalko_0-1640183172726.png

 

Any ideas.

 

Thanks

 

0 Likes
Reply
Accepted solutions (1)
375 Views
2 Replies
Replies (2)

norman.yuan
Mentor
Mentor
Accepted solution

MText.Height means the whole height of the MText object, which may have multiple lines of text (Also the property "ActualHeight"). I suppose what you want to change is MText.TextHeight property, which defaults to the text height defined in the applied TextStyle (0.2, in your case).

Norman Yuan

Drive CAD With Code

EESignature

0 Likes

steve.walko
Participant
Participant

Ahhhh!

 

That was it.

 

Thank You

Thank you

0 Likes