Hi,
this bug report is a consequence of Mark's discussion about PropertyHandler and also reopening of older discussion about the same issue, which was left with no reaction from ORD developers :-(
Bug description: In OpenRoads Designer CE - 2021 Release 2 - Version 10.10.21.04, when CreateCellElement1 method is used, it crashes program completely (access violation).
It works fine in MicroStation and also in older ORD version (e.g. OpenRoads Designer CONNECT Edition - 2020 Release 3 - Version 10.14.04.04). I was not able to test previous version of 2021 R2.
Test code:
Public Sub StartTest() Dim line As LineElement Set line = CreateLineElement2(Nothing, Point3dFromXY(5, 1), Point3dFromXY(10, 4)) Dim ellipse As EllipseElement Set ellipse = CreateEllipseElement2(Nothing, Point3dFromXY(2, 2), 3, 3, Matrix3dIdentity) Dim elements(0 To 1) As Element Set elements(0) = line Set elements(1) = ellipse Dim cell As CellElement Set cell = CreateCellElement1("test", elements, Point3dFromXY(0, 0), False) End Sub
I treat it as critical error, because there is no other way how to create a cell from more elements.
Regards,
Jan
Jan,
We found the cause of this crash and created a new version of ORD (10.10.22.01) that you can request from Support.
Answer Verified By: Jan Šlegr
Hi Chis,
Does that address all the new vba issues in ORD 2021 R2 or just the CreateCellElement bug?
Mark
OpenRoads Designer 2023 | Microstation 2023.2 | ProjectWise 2023
Nark,
It is my understanding that it corrects a memory issue revealed by cells and "could" be the cause of your VBA property work as well. I would certainly try that version. We only changed the underlying platform code and not the ORD code between 10.10.21.04 and 10.10.22.01.
Hi Chris,
based on your information I tested the new build and VBA works fine now! :-)
Thanks for your help,
Bentley Accredited Developer: iTwin Platform - AssociateLabyrinth Technology | dev.notes() | cad.point
We have also had positive results using this new version for this outstanding bug https://communities.bentley.com/products/programming/civil_programming/f/civil_programming_forum/226693/ord-ce-10-10-release-2-crash---polyface-inside-a-cell-no-crash-in-release-1/716272#716272