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 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