ORD旗舰版中路线元素转com口元素

各位老师, ORD中国版中, 把ORD路线元素, 转换为COM口下的Element元素, 下面这么写不对吗? 为啥运行次数多了会闪崩, 请指教
Bentley.Interop.MicroStationDGN.Element bimEE = SampleMixed.ElementOperation.ConvertToInteropEle(Alignment.Element);

Parents Reply
  • 目前我们软件里面的元素有两种,一种是基于Bentley.DGNPlatformNET.dll的,该元素的类型就是Bentley.DgnPlatformNET.Elements.Element;

    一种就是com的接口,基于Bentley.Interop.MicroStationDGN.dll的,它的类型是Bentley.Interop.MicroStationDGN.Element;

    如果想将Bentley.Interop.MicroStationDGN.Element转成Bentley.DgnPlatformNET.Elements.Element,那么可以通过获取其元素id然后再通过该元素id通过Bentley.DgnPlatformNET的方法找到该元素对象的办法。

Children