Hi,
Thanks you for your (as always) quick and structured answer.
I realize that there are interop calls to create cells the same way as in VBA. My impression was, however, that you have to work entirely with interop functions for this. I.e. all parametes has to be Bentley.Interop.MicroStationDGN not Bentley.GeometryNET and the returned element is also Bentley.Interop.MicroStationDGN.CellElement not Bentley.GeometryNET.Elements Element.
My CreateCellElement() method is supposed to return an element of the same type as all my other CreateXXXElement() method since it's part of the following logic:
switch (InputGeometry.type)
case Line:
element = CreateLineElement(InputGeometry);
case Cell:
element = CreateCellElement(InputGeometry)
...
Regards,
Krister
Thanks you for your (as always) quick and structured answer.
I realize that there are interop calls to create cells the same way as in VBA. My impression was, however, that you have to work entirely with interop functions for this. I.e. all parametes has to be Bentley.Interop.MicroStationDGN not Bentley.GeometryNET and the returned element is also Bentley.Interop.MicroStationDGN.CellElement not Bentley.GeometryNET.Elements Element.
My CreateCellElement() method is supposed to return an element of the same type as all my other CreateXXXElement() method since it's part of the following logic:
switch (InputGeometry.type)
case Line:
element = CreateLineElement(InputGeometry);
case Cell:
element = CreateCellElement(InputGeometry)
...
Regards,
Krister