• 【MSCE C#】Addin 实现线切割实体并保留两侧元素的功能,使用ElementCopyContent复制元素可能出现错误

    wang_yz 王英志
    wang_yz 王英志
    老师们好,我在 ElementCopyContent的使用中遇到了问题。 我把通过LineElement作为切割一个实体,并保留两侧的功能做成了方法。具体的实现,是用ElementCopyContent复制源实体两份,先用BooleanCut剪切第一个复制体,然后将LineElement的CurveVector的方向对调,剪切第二个复制体,将两个被剪切过的复制体输出。输出前判断下体积,如果体积相当,则认为没有剪切到实体,只返回第一个复制体。 这个方法被用在OnDataButton中。如果创建的模型简单…
    • 25 days ago
    • Bentley 中国优先社区
    • ◆ 二次开发(MicroStation编程, ProjectWise编程等)
  • 关于调用Bentley.Interop.MicroStationDGN的CreateCellElement2函数导致ORD内存溢出的问题

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

    Sui Huang
    Sui Huang
    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…
    • 2 months ago
    • MicroStation Programming
    • MicroStation Programming Forum
  • Selecting non graphical Item using C# Addin

    Adam Jamison
    Adam Jamison
    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…
    • 3 months ago
    • MicroStation Programming
    • MicroStation Programming Forum
  • [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…
    • Answered
    • 11 months ago
    • Bentley 中国优先社区
    • ◆ 二次开发(MicroStation编程, ProjectWise编程等)
  • 关于ORD导入cell时异常崩溃的问题(在MicroStation上测试没有问题)

    fanghua wei
    fanghua wei
    写了一个函数测试道岔模型的导入,但是在导入的时候ORD会异常崩溃,代码如下: /// <summary> /// 测试道岔建模 /// </summary> public static void TestTurnoutModeling() { try { Bentley.Interop.MicroStationDGN.Application msApp = Bentley.MstnPlatformNET.InteropServices.Utilities.ComApp;…
    • over 1 year ago
    • Bentley 中国优先社区
    • ◆ 二次开发(MicroStation编程, ProjectWise编程等)
  • 关于C#如何读取存放在CAD的dwg文件中的截面信息的问题

    fanghua wei
    fanghua wei
    我有一个存放在CAD的dwg文件中的钢轨截面: 我想把这个截面用C#代码读取到ORD里面,并且利用这个截面来建模。 请问可以实现么?
    • over 1 year ago
    • Bentley 中国优先社区
    • ◆ 二次开发(MicroStation编程, ProjectWise编程等)
  • 关于代码给一个Alignment对象创建纵断面线的问题

    fanghua wei
    fanghua wei
    使用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…
    • Answered
    • over 1 year ago
    • Bentley 中国优先社区
    • ◆ 二次开发(MicroStation编程, ProjectWise编程等)
  • [MicroStation CONNECT Update 16 C# WPF] Is dynamic toolbox possible?

    Frank Schneller
    Frank Schneller
    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…
    • over 1 year ago
    • MicroStation Programming
    • MicroStation Programming Forum
  • [CONNECT Ed. 10.15.00.74 C# Addin] VS2019 Commands key-in not loading when following the basic example in the wiki

    Gary Shay
    Gary Shay
    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…
    • over 1 year ago
    • MicroStation Programming
    • MicroStation Programming Forum
  • 老师好,我想请问下,在V8i中 addin开发,定制dgnlib和Robbin界面以后,使用V8i task却找不到图标,定制的菜单工具栏却存在。当我点击一次工具后,关闭再次去点击显示已加载,mdl开发的工具却没有问题,这是操作上的问题吗?

    yue yao
    yue yao
    老师好,我想请问下,在V8i中 addin开发,定制dgnlib和Robbin界面以后,使用V8i task却找不到图标,定制的菜单工具栏却存在。当我点击一次工具后,关闭再次去点击显示已加载,只能像开发测试一样,关闭从新打开,mdl开发的工具却没有问题,这是操作上的问题吗?
    • Answered
    • over 2 years ago
    • Bentley 中国优先社区
    • ◆ 二次开发(MicroStation编程, ProjectWise编程等)
  • [CONNECT UPDATE 15 C#] NotificationAdministrator

    Damian Holubowski
    Damian Holubowski
    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…
    • over 2 years ago
    • MicroStation Programming
    • MicroStation Programming Forum
  • 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…
    • over 2 years ago
    • Bentley 中国优先社区
    • ◆ 二次开发(MicroStation编程, ProjectWise编程等)
  • 【C# V8i】批打印管理加载文件时会加载Addin

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

    Sui Huang
    Sui Huang
    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…
    • over 3 years ago
    • MicroStation Programming
    • MicroStation Programming Forum
  • CONNECT C# - How to revolve a shape?

    Norbert Meier
    Norbert Meier
    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…
    • Answered
    • over 4 years ago
    • MicroStation Programming
    • MicroStation Programming Forum
  • [V8i MDL C#] How programmatically assign to cell a class of equipment?

    Vitaliy Malikov
    Vitaliy Malikov
    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…
    • over 4 years ago
    • MicroStation Programming
    • MicroStation Programming Forum
  • 【MSTN V8I SS3 C# Add-in VS2015 PRO】 Some questions about SolidUnion?

    Alisa LI
    Alisa LI
    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.…
    • over 4 years ago
    • MicroStation Programming
    • MicroStation Programming Forum
  • Step by step guide for creating MicroStation Addins in C#

    John Drsek
    John Drsek
    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…
    • over 4 years ago
    • MicroStation Programming
    • MicroStation Programming Forum
  • [V8i MDL C#] How to get the name of the current specification

    Vitaliy Malikov
    Vitaliy Malikov
    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…
    • Answered
    • over 4 years ago
    • MicroStation Programming
    • MicroStation Programming Forum
  • [c# CONNECT ADDIN] how to get same addIn to work for both microstation and ORD?

    John Drsek
    John Drsek
    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…
    • over 4 years ago
    • Civil Programming
    • Civil Programming Forum
  • 圆锥的一部分在C# net 口下怎样创建

    luning shi
    luning shi
    我在net口下用ConeElement函数能创建一个圆锥,如下图绿色体;我现在想创建部分锥体如下图灰色体,用哪个函数创建,怎样实现能?
    • over 4 years ago
    • Bentley 中国优先社区
    • ◆ 二次开发(MicroStation编程, ProjectWise编程等)
  • 单元类型转换问题 “Bentley.Interop.MicroStationDGN.Element”单元转换为“Bentley.DgnPlatformNET.Elements.Element‘’单元用哪个函数实现

    luning shi
    luning shi
    请问“Bentley.Interop.MicroStationDGN.Element”转换为“Bentley.DgnPlatformNET.Elements.Element” 用哪个函数实现单元类型的转换
    • Answered
    • over 4 years ago
    • Bentley 中国优先社区
    • ◆ 二次开发(MicroStation编程, ProjectWise编程等)
  • C# microstation V8i

    Vinoth Joseph
    Vinoth Joseph
    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…
    • over 5 years ago
    • ProjectWise
    • ProjectWise Design Integration Forum
  • 【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…
    • Answered
    • over 5 years ago
    • Bentley 中国优先社区
    • ◆ 二次开发(MicroStation编程, ProjectWise编程等)
>