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);
I see a mdlDim_setStrings() method. The DgnPlatform::DimStrings struct has no 'primary' member. It seems to only have an array of 6 WString's (m_strings[6])
Hi, I have the same problem,
Someone had the solution to assign a value to the 'V8i primary string' in Connect?
Regards
Hi Sebastien,
it's 2 years old discussion, so it would be better to create a new post to reflect a fact you probably use newer MicroStation.
Also, please follow the best practices and specify used product and its version (build number) exactly. It helps to identify situation when bug in older version was reported and it's known in what version it was fixed.
With regards,
Jan
Bentley Accredited Developer: iTwin Platform - AssociateLabyrinth Technology | dev.notes() | cad.point
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