Browse By Tags

  • 关于调用Bentley.Interop.MicroStationDGN的CreateCellElement2函数导致ORD内存溢出的问题

    各位老师好,我们开发了一个铁路车站建模系统,包含很多类型的设备。 有几种设备(车挡、警冲标、信号机等)都是调用CreateCellElement2函数进行建模。 建模函数如下: public static Element CreateNormalCell(string dgnPath, string cellName, BIM.Point3d point, BIM.Point3d scalePoint, BIM.Matrix3d matrizIdentidad, bool isAddToModel…
  • sustainable way for Microstation CE add-in/MDL to be deployed to shared network directory?

    Hi Everybody, I am studying in migrating a set of Microstation MDL files working on Microstation V8i SS10. In the current system, the MDL (.MA) files are deployed in a network folder. With the configuration of MDL directories, they can be loaded by…
  • Selecting non graphical Item using C# Addin

    I've been working on migrating some of our in house data sets over to these item sets, I've managed to get about 80% of the required functionality done, there's just a few finishing touches I'm working on to make it a bit more seamless Import custom…
  • [MSCE C#] 通过Create.BodyFromLoft无法创建实体

    我在创建通过两个截面放样生成一个实体的时候使用了如下代码,但无法生成实体。 public void CreateComplexShapeArc() { DgnModel dgnModel = Session.Instance.GetActiveDgnModel(); DPoint3d center = DPoint3d.Zero; #region 迎顶面截面 //外径 DVector3d p1 = new DVector3d(0, 75000, 0); DVector3d…
  • 关于ORD导入cell时异常崩溃的问题(在MicroStation上测试没有问题)

    写了一个函数测试道岔模型的导入,但是在导入的时候ORD会异常崩溃,代码如下: /// <summary> /// 测试道岔建模 /// </summary> public static void TestTurnoutModeling() { try { Bentley.Interop.MicroStationDGN.Application msApp = Bentley.MstnPlatformNET.InteropServices.Utilities.ComApp;…
  • 关于C#如何读取存放在CAD的dwg文件中的截面信息的问题

    我有一个存放在CAD的dwg文件中的钢轨截面: 我想把这个截面用C#代码读取到ORD里面,并且利用这个截面来建模。 请问可以实现么?
  • 关于代码给一个Alignment对象创建纵断面线的问题

    使用C#代码创建了出了ORD的Alignment对象,所使用的坐标点如下: EXPoint3d point1 = new EXPoint3d(469430, 0, 3443); EXPoint3d point2 = new EXPoint3d(472400, 0, 3443); 首先使用了 CreateAlignmentByLinearElement方法创建出了Alignment对象: // 直线段 DPoint3d startPoint = new DPoint3d(m_points…
  • [MicroStation CONNECT Update 16 C# WPF] Is dynamic toolbox possible?

    Hello, folks! For once, SDK has a rather extensive example for programming WPF applications. This example is called WPFdemo. Here you can open a dockable toolbar with 'wpfdemo open5'. So far so good. But now I would like this toolbox to behave like…
  • [CONNECT Ed. 10.15.00.74 C# Addin] VS2019 Commands key-in not loading when following the basic example in the wiki

    I'm following the steps to create a new MDL addin using C# and I'm having an issue with getting the commands.xml to be recognized. VS 2019 (recommendation says for the below version to load VS2017 or higher for .NET programming) Microstation CE 10.15…
  • 老师好,我想请问下,在V8i中 addin开发,定制dgnlib和Robbin界面以后,使用V8i task却找不到图标,定制的菜单工具栏却存在。当我点击一次工具后,关闭再次去点击显示已加载,mdl开发的工具却没有问题,这是操作上的问题吗?

    老师好,我想请问下,在V8i中 addin开发,定制dgnlib和Robbin界面以后,使用V8i task却找不到图标,定制的菜单工具栏却存在。当我点击一次工具后,关闭再次去点击显示已加载,只能像开发测试一样,关闭从新打开,mdl开发的工具却没有问题,这是操作上的问题吗?
  • [CONNECT UPDATE 15 C#] NotificationAdministrator

    Hello, I wanted to catch messages from notification panel of microstation. I can catch messages with green underline with AddIn.MessageCenterWriteEvent. But I can't catch message with red underline. I found NotificationAdministrator with description…
  • c#二次开发OBD如何修改两边竖线的长度

    public static void Dimension() { CreateNewModel(); DgnFile dgnFile = Session.Instance.GetActiveDgnFile(); DgnModel dgnModel = Session.Instance.GetActiveDgnModel(); double uorPerMast = dgnModel.GetModelInfo().UorPerMaster; DimensionStyle dimStyle = new…
  • 【C# V8i】批打印管理加载文件时会加载Addin

    老师您好,我在操作批打印管理时遇到这样一个问题:首先我打开Ms时会自动加载一个Addin程序,用cfg文件配置_USTN_REQUIREDAPPS进行的自动加载,然后我在批打印管理里添加一个文件,如图: ,点击确定后居然会自动加载一遍我的Addin程序,如图: ,这里输出的 “123123”是我在Addin程序的Run方法里设置的MessageBox消息,请问这个情况要怎么处理呢?
  • MicroStation V8i: reference documentation for Bentley.Interop.MicroStationDGN in C#?

    Hi Experts, I am working on some C# AddIn code (Visual Studio) for MicroStation V8i SS4. The Visual Studio code refers to MicroStation DLLs and uses the names spaces such as Bentley.Interop.MicroStationDGN Bentley.MicroStation.InteropServices…
  • CONNECT C# - How to revolve a shape?

    Hello, I try to follow the recomendations from Jan and Jon to use the .NET API for CONNECT AddIn development instead trying to call mdlSolid_... functions from C# directly see: https://communities.bentley.com/products/programming/microstation_programming…
  • [V8i MDL C#] How programmatically assign to cell a class of equipment?

    Hi everyone, I wrote a script that adds a Cell from the specified file by using IPrimitiveCommandEvents class. Now I need to assign a equipment class to Cell and fill in its new attributes with values. How can i do it? Development is conducted for…
  • 【MSTN V8I SS3 C# Add-in VS2015 PRO】 Some questions about SolidUnion?

    hello,everyone: Here is my question.I want to union some SlabElement to a complex solid element, but I found that When I use the SolidUnion method to union hundreds of SlabElement s,the program will be very slowly.It takes minutes to complete it.…
  • Step by step guide for creating MicroStation Addins in C#

    Just wanted to make a post to hopefully help some people. I have created a guide linked below, that walks you through how to set up a visual studio project to be used as an Addin within MicroStation. Creating MicroStation Addins…
  • [V8i MDL C#] How to get the name of the current specification

    Hi everyone, I need to get the name of the current specification in project Bentley OpenPlant Modeler V8i ( see Figure ). Now I can get a path of project Specs Databases string specsDBDirPath = Bentley.Plant.Utilities.WorkspaceUtilities.GetConfigVar…
  • [c# CONNECT ADDIN] how to get same addIn to work for both microstation and ORD?

    i wrote an addin using the microstation CONNECT SDK. i got it done and compiled it and was able to run in MicroStation CONNECT. i then tried to run it in OpenRoads Designer and i get a MDL load error. I'm assuming its not finding the references since…
  • 圆锥的一部分在C# net 口下怎样创建

    我在net口下用ConeElement函数能创建一个圆锥,如下图绿色体;我现在想创建部分锥体如下图灰色体,用哪个函数创建,怎样实现能?
  • 单元类型转换问题 “Bentley.Interop.MicroStationDGN.Element”单元转换为“Bentley.DgnPlatformNET.Elements.Element‘’单元用哪个函数实现

    请问“Bentley.Interop.MicroStationDGN.Element”转换为“Bentley.DgnPlatformNET.Elements.Element” 用哪个函数实现单元类型的转换
  • C# microstation V8i

    I'm trying to open a design file for read thru program from Visual C# as below: using BCOM = Bentley.Interop.MicroStationDGN; class Program { public static BCOM.Application MSApp = null; [STAThread] public static void Main() { MSApp = new BCOM…
  • 【V8i C#】关于调用ActiveModelReference.CopyElement()方法得到一个新元素后,再对新元素使用.Move()方法却未移动问题

    老师你好,现学习过程中碰到问题如下: 我在继承自ILocateCommandEvents的类的Accept(Element pElement,ref Point3d pPoint,View view)方法中有如下代码 { Point3d setPoint = app.Point3dFromXYZ(20, 10, 0); newElement = app.ActiveModelReference.CopyElement(pElement); newElement.Move(ref setPoint…
  • AddinManager - MSCE 中 Addin 开发辅助插件

    在进行 Bentley 的 MicroStation (或者其他基于 MS 的软件,如 OpenRoads Designer 、 ABD 等)进行开发时,为了解决在开发过程中的对插件代码修改后,必须将 MS 软件关闭并重启,才能对插件进行重新编译与调试的问题, MS 提供了 MDL Load 与 MDL Unload 的命令,实现了开发过程中的插件加载与卸载。对于 Addin 程序,也可以通过 MDL Load 并指定应用程序域的方式进行插件的加载与卸载( MDL LOAD csAddins,,MyDomain…