My plugin scales dimension objects automatically before they are created so as to have them be a useful size for the current model. It does this by multiplying the right value from the GetFrustum function with a constant and then applying the result to the text height. Other aspects of dimensions are sized similarly.
This works great when the default template is used. But I recently realized that scale is way off when used with other templates, like ‘small object cm’ for instance.
I thought resetting the units as follows would fix this:
But it does not. So it seems like the Frustum is somehow affected by the different units in a way that isn’t affected by changing the units. If this is the case, what is it exactly and how can I change the frustum to behave as if no template had been selected?
Any other thoughts on how to solve this?