I've migrated a VBA macro from V8i to CE Update 12 that places dimension elements.
In the V8i version this statement works without a problem to place the automatic text for the dimension element
elDim.PrimaryText = "*"
In CE U12 I get this error on the same statement.
If I replace the * with any other text value the statement works without a problem.
elDim.PrimaryText = "Dim Value"
Is this a defect in CE, or is there a new way to enter specify automatic text in a dimension element?
If I locate an existing dimension element in a VBA that uses the automatic text the PrimaryText property returns * as expected.
I set it to a different text value successfully, then tried to change it back to the * and got the same error.
Rod WingSenior Systems Analyst
Rod Wing said:Is this a defect in CE, or is there a new way to enter specify automatic text in a dimension element?
it's the bug in my opinion, there is not any other / new way how to modify dimension text in VBA.
Unfortunately there is no property handler available (dimension text is not displayed in Element Properties dialog), so I guess the only workaround available is to call native C++ function, which is not simple in general and even more complicated in this case, because structures are used as parameters in native API, not simple string.
Bentley Accredited Developer: iTwin Platform - AssociateLabyrinth Technology | dev.notes() | cad.point
Hi Artur Goldsweer,
Can you review this post to confirm with a defect, provide recommendation, or if needed request a standard test case to ensure reproduciblility?
Thank you in advance,Bob
I filed a service request. Service Request number7001014756
Hi Rod Wing,
thanks for reporting this issue, Defect # 1073627 is filed to address this issue and the Service Request is linked to the Defect.
I have tested this in CE U16 and it has been fixed.
Answer Verified By: Rod Wing