[CONNECT C++] Apply dimension style to existing dimension with no style

Hi folks,

Is there any way to add a named dimension style to an existing element that has no dimension style? The IDimensionEdit::ApplyDimensionStyle() function does not seem to be able to do this. After calling this function  with a named dimension style and reading it straight back, the dimension has all of the settings of the applied dimension except the dimension style name. If the existing element already has a named dimension style then it works fine.

Basically I need to know how to do this programmatically, in any language: https://communities.bentley.com/products/microstation/w/microstation__wiki/18599/apply-dimension-style-to-existing-dimensions-which-have-no-dimension-style

I could achieve this in V8i with mdlDim_applyDimStyle() but this no longer works in Connect.

Cheers.