Hi,
How can I assign value to "mdlDim_setStrings" ? In V8i we could set it easily as code below:
swprintf (dim_strings.primary.single, L"%.2f", fabs (pPnt1->y - pPnt2->y) / D_DGN_RESOLUTION / fc_10); mdlDim_setStrings (pElm, 0, &dim_strings); mdlDim_validate (pElm);
But in Connect I got following error:
- C2039: 'primary': is not a member of 'Bentley::DgnPlatform::DimStrings'
Connect Edition DimStrings seems to only have method to get strings:
- DGNPLATFORM_EXPORT WStringP GetString (DimensionTextPartType, DimensionTextPartSubType);
FYI.
We have filed documentation Defect 1116146 to address providing an implementation code snip showing how to Implement mdlDim_setStrings in MicroStation CONNECT. For now, please try and confirm (Mark Answered) if the code snip linked and provided helps resolve your issue, or feel free to Search and Ask new questions as needed.
HTH,Bob
Answer Verified By: ManuEce