I recorded the fractional chamfer annotation and then checked the code. I don't see that the code show fraction. Any suggestion?
I recorded the fractional chamfer annotation and then checked the code. I don't see that the code show fraction. Any suggestion?
Ah that explains why I couldn't find it. That option is not available when your document/dimension uses the metric system.
When you get a displayDimension object, for example by using the selectionManager, you can use GetUseDocUnits to check if the dimension uses the standard document units or not. When the unit is overridden, it'll become true. When fractions are enabled, GetFractionBase will return 2. You can then read the denominator using GetFractionValue. I couldn't find a way to read the numerator.
Just to for us metric guys, how do you create that annotation manually?