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

MText height not working

2 REPLIES 2
SOLVED
Reply
Message 1 of 3
steve.walko
357 Views, 2 Replies

MText height not working

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

 

2 REPLIES 2
Message 2 of 3
norman.yuan
in reply to: steve.walko

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

Message 3 of 3
steve.walko
in reply to: norman.yuan

Ahhhh!

 

That was it.

 

Thank You

Thank you

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

Post to forums  

Forma Design Contest


Autodesk Design & Make Report