Change of the text height

Hi guys,

I have created a text object:
context.m_doc.AddTextObject(…). How could I change the text height? How to change the orientation of the text?

Another question: I have a curve on a layer. If the layer color is black, I want to display the curve in red color, can I do this?

Thank you.
Regards
Eric

Hi @renyu_teng,

The height of annotation text is controlled by it’s dimension style. Here is an example of changing the height of a dimension style.

cmdSampleDimStyleTextHeight.cpp

– Dale