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.
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)
I treat it as critical error, because there is no other way how to create a cell from more elements.
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
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