I can more or less set every dimension property reliably in Connect now aside from the terminator fit option for text/terminators.
When I call this:
DimStyleProp_FitOptions iFitOptions = DIMSTYLE_VALUE_FitOption_KeepTextInside;
dimStyleP->SetIntegerProp ( iFitOptions, DIMSTYLE_PROP_General_FitOption_INTEGER );
It seems to set correctly in the dimension style when I query it immediately with GetIntegerProp(), but after writing the dimension style back to the dimension element it does not stick and it defaults back to the terminator fit option it previously had. I've also tried setting the dimension style override for this property to no avail. The same code seems to work correctly for all other dimension properties, it just seems to be this one property that doesn't work.
The code to apply my dimension style looks a bit like this:
EditElementHandle eeh ( *dimEdPP, FALSE, FALSE, modelRef );
DimensionHandler* dh = dynamic_cast < DimensionHandler* >( &( eeh.GetHandler () ) );
dh->ApplyDimensionStyle ( eeh, *dimStyleP, FALSE );
I presume this code is correct because again, it works for every other dimension setting. Manually apply the fit option through the "Change Dimension" command in MicroStation does seem to work, so it doesn't seem to be a limitation based on the dimension type - which is just a simple linear dimension I created from scratch for testing.
Is this dimension setting API broken for this property, overridden by another property, or is there another way to set this property and have it apply correctly to a dimension?
Cheers.