This code was created following examples in the Element_Modify.cpp, but when I use this code to change the TextContent, the text object's scale becomes far smaller without altering the element.text.size or anything similar.
merely changes the textContent of the memo to upper or lowercase.
When the function is called on text that has Fixed State: Scale Independent(Paper Size) setting, the text does not change size. However, if the text is set to Fixed State: Scale with plan (Model Size), then the text reduces in size greatly. Currently, the text goes from 2 1/2" to 15/64" using the above code, when it seems nothing should resize it.
If I try to get the current text size using
, it appears to report the size and if I set the element.text.size in the mask, it still sets the size to a number far lower than it currently is.
Is this a bug? does text scale have to be recalculated somehow every time the content alone is changed?
In none of the examples did I see this written any differently or bothering with scale.