Quantcast
Channel: MicroStation Programming Forum - Recent Threads
Viewing all articles
Browse latest Browse all 7260

RE: [CONNECT C#] Yet another create cell question

$
0
0

I'm a bit confused how Bentley.Interop.MicroStationDGN and Bentley.GeometryNET relate. They both has Element, one has Point3D the other one DPoint3d etc.

If I use Bentley.GeometryNET for the rest of my code I cannot see how I can get the proper Element from the interop call.

The parameters in interop are or type Bentley.Interop.MicroStationDGN. E.g.

Bentley.Interop.MicroStationDGN.CellElement Application.CreateCellElement2(
string,
Bentley.Interop.MicroStationDGN.Point3d,
Bentley.Interop.MicroStationDGN.Point3d,
bool,
Bentley.Interop.MicroStationDGN.Matrix3d)

I would like it to be:

Bentley.GeometryNET.Elements.Element CreateCellElement2(
string,
Bentley.GeometryNET.DPoint3d,
Bentley.GeometryNET.DPoint3d,
bool
Bentley.GeometryNET.DMatrix3d )

The main problem (as I see it) is that it return the wrong type of Element. The parameters can be reconstructed.

/Krister


Viewing all articles
Browse latest Browse all 7260

Trending Articles