• Basic DgnFile Usage

    Aidan Schulze
    Aidan Schulze
    Environment: Windows 10 Enterprise 21H2 .NET Framework 4.6.2 Microstation CONNECT Edition Update 15 v10.15.02.11 mssdk10150076 Good day, this is a two-part question: How can I iterate over the models in a .dgn file, and then over…
    • Answered
    • 1 day ago
    • MicroStation Programming
    • MicroStation Programming Forum
  • Cell property in OpenRail Designer that shows if it is annotated?

    Samuel Wiklund
    Samuel Wiklund
    I have seach in the DgnPlatformNet API if there is any property of cell that shows if the cell is annotated? Code in C#. I have some picture that shows what i mean. This is the feature in OpenRail Designer that I use to annotate an cell. And…
    • 1 day ago
    • MicroStation Programming
    • MicroStation Programming Forum
  • [MSCE U17 SDK C#] sample code: what does Session.ActivateContextualTabSet function do?

    Sui Huang
    Sui Huang
    Hi Everybody, I am trying to understand the sample code comes with the Microstation CONNECT Edition SDK (Update 17). The sample project I am looking at is at <Mocristation SDK Root Folder>\examples\WPF\WPFDemo\ In the WPFDemoKeyins.cs file of the…
    • 1 day ago
    • MicroStation Programming
    • MicroStation Programming Forum
  • [Microstation CE Update 17] [C#] | Update buffer | Undo previous change

    Ivan Petrov
    Ivan Petrov
    I have the next code: public void Update(IDgnECInstance instance, string propertyName, string value) { instance.SetAsString(propertyName, value); instance.WriteChanges(); } How can I enable users to reverse actions performed in my custom form using…
    • 3 days ago
    • MicroStation Programming
    • MicroStation Programming Forum
  • Changing orientation of the reference

    Suraj Kumar
    Suraj Kumar
    Hi Everyone, I'm currently working with MicroStation Connect Edition and using its API to reference a DGN file. I've successfully referenced the file using the MicroStation API, but I'm facing an issue with setting the reference orientation to match…
    • 6 days ago
    • MicroStation Programming
    • MicroStation Programming Forum
  • [CONNECT Update 17 C#] Set active Multiline Style

    Frank Schneller
    Frank Schneller
    Hi, Is there a way to simply activate a multiline style in MicroStation? Like, for example, the MLINESTYLE ACTIVE <NAME> keyin of the MicroStation does. And then read out the currently active multiline style from the MicroStation again? Regards F…
    • Answered
    • 6 days ago
    • MicroStation Programming
    • MicroStation Programming Forum
  • 怎么根据属性的标签名称和属性名获取属性值

    小新 张
    小新 张
    我是先拿到所有IDgnECInstance,然后在遍历取到IDgnECInstance上的所有属性名和属性值的,相同属性名会覆盖掉,比如元素ID:73655
    • Answered
    • 6 days ago
    • Bentley 中国优先社区
    • ◆ 二次开发(MicroStation编程, ProjectWise编程等)
  • PointStringElement怎么获取几何信息

    小新 张
    小新 张
    我没有找到合适的API来获取 PointStringElement 上的点集合。 如果点串只有一个点可以根据 GetOrigin() 方法拿到。但是如果是多个点,我没有找到合适的API来取。
    • Answered
    • 7 days ago
    • Bentley 中国优先社区
    • ◆ 二次开发(MicroStation编程, ProjectWise编程等)
  • Dgn file hash.

    Ivan Petrov
    Ivan Petrov
    I am writing an application for MicroStation and ORD under c# I plan to cache specific data to improve the application's startup speed following a session involving a file. In light of this, having access to a file hash would be extremely helpful. Does…
    • Answered
    • 8 days ago
    • MicroStation Programming
    • MicroStation Programming Forum
  • [PS C#]最新版本的SDK能用C#提取钢筋和混凝土信息了吗?

    霜 胡
    霜 胡
    ProStructures最新的SDK能使用C#取得钢筋的属性什么的吗?或者说通过C#在钢筋混凝土这块能做些什么事
    • 9 days ago
    • Bentley 中国优先社区
    • ◆ 二次开发(MicroStation编程, ProjectWise编程等)
  • XDataTreeNode如何新建一个模板 如何修改读取到的XDataTreeNode的属性值

    小波饽
    小波饽
    阅读过这篇问题 RE: [MS C#]咨询老师一下,Element Templates的属性信息如何获取? 我写了这样修改XDataTreeNode的属性值的 但是运行后没有对dgn中的模板进行修改想知道如何代码修改dgn中的模板 也想知道如何新建一个模板添加到dgn中。
    • 9 days ago
    • Bentley 中国优先社区
    • ◆ 二次开发(MicroStation编程, ProjectWise编程等)
  • mdlPop_elementDescrFromElementDescrDifference剪切没有效果?

    ShaoQi
    ShaoQi
    C#中利用网格剪切函数进行地形剪切功能实现。 拉伸构造智能实体后,将实体转换成网格然后与地形进行剪切,发现地形剪切功能无法完成,将实体转换的网格与地形利用软件网格减功能可以完成剪切。 文件随问题附上,实现方法如下代码。 long eleid = processor.myMeshHeader.ElementId; Bentley.Interop.MicroStationDGN.Element solid = Bentley.MstnPlatformNET.InteropServices…
    • 10 days ago
    • Bentley 中国优先社区
    • ◆ 二次开发(MicroStation编程, ProjectWise编程等)
  • ElementTemplateNodePtr

    小波饽
    小波饽
    有没有用c#代码操作元素模板的示例可以分享一下 有看到ElementTemplateNodePtr但是是c++的
    • 13 days ago
    • Bentley 中国优先社区
    • ◆ 二次开发(MicroStation编程, ProjectWise编程等)
  • 如今判断两实体相交位置,并分别进行剪切

    ShaoQi
    ShaoQi
    目前可通过放样生成两实体,两实体部位间存在接触关系。 实体依照相交位置,多余的部分应进行剪切。 目前在建模中利用相交辅助线进行了实体剪切,示例如图。 c#中是否有获取相交线的函数?或者实现此效果是否有其他思路?还请指点一下。
    • Answered
    • 17 days ago
    • Bentley 中国优先社区
    • ◆ 二次开发(MicroStation编程, ProjectWise编程等)
  • how to start microstation connect edition programmatically in c#

    Diego Paredes
    Diego Paredes
    I currently have this code in C# in a console application, the only thing at the moment is wanting to open microstation connect edition, but unfortunately it throws an error or returns null static void Main(string[] args) { try { Type type1…
    • 20 days ago
    • MicroStation Programming
    • MicroStation Programming Forum
  • [OPM C#]在SheetModel中创建的文字与代码设置的宽高不一样?

    小 子
    小 子
    各位老师,我尝试使用如下代码在SheetModel中创建文字 设置的宽高为400mm,但是实际生成的宽高为4mm,该如何进行设置控制文字大小? SheetModel和文字的属性如图 public void createtext() { DgnFile dgnFile = Session.Instance.GetActiveDgnFile();//获得定义文本元素的文件 DgnModel dgnModel = Session.Instance.GetActiveDgnModel…
    • 20 days ago
    • Bentley 中国优先社区
    • ◆ 二次开发(MicroStation编程, ProjectWise编程等)
  • accessing the information of the dgn without reading the references with IModel ODBC Driver

    Diego Paredes
    Diego Paredes
    how to get data of dgn model without references another dgn files with ODBC Driver
    • 20 days ago
    • MicroStation
    • MicroStation Forum
  • C#当Shape中的点超过4999,linestring超过5000个点要用什么方式画出来

    UNA UNA
    UNA UNA
    用这个会报32768
    • 21 days ago
    • Bentley 中国优先社区
    • ◆ 二次开发(MicroStation编程, ProjectWise编程等)
  • how to read dgn file with Bentley.DgnECPlugin3

    Diego Paredes
    Diego Paredes
    I want to be able to read this dgn file, but when I try to load the Bentley.DgnECPlugin3 plugin, it returns null assembly , in addition to when I try to run the code it throws me the following error I currently have MicroStation CONNECT Edition installed…
    • 22 days ago
    • MicroStation Programming
    • MicroStation Programming Forum
  • 利用BooleanSubtract进行实体剪切出错,无法完成剪切。利用软件功能相减功能也无法完成剪去实体。

    ShaoQi
    ShaoQi
    利用BooleanSubtract进行实体剪切出错,无法完成剪切。 利用microstation软件 修改特征-相减 功能也无法完成剪去实体,,显示无法用当前元素创建差集但是相交、相并功能可以使用,使用修改特征-剪切实体功能也完成了剪切操作。 利用v8i中旧版剪切工具也可以完成。 请问这个实体是存在什么问题会产生这种情况,现在开发利用BooleanSubtract将周围重合元素进行减去,请问该如何进行实现?
    • Answered
    • 22 days ago
    • Bentley 中国优先社区
    • ◆ 二次开发(MicroStation编程, ProjectWise编程等)
  • Is it possible to apply Hydrostatic Pressure using OpenSTAAD

    nivassrii
    nivassrii
    Hi, I am working on an automation project where I have the requirement to apply hydrostatic pressure on plate elements and I need to achieve this using OpenSTAAD so that user interaction can be avoided. I have gone through the OpenSTAAD online reference…
    • 23 days ago
    • RAM | STAAD | ADINA
    • RAM | STAAD Forum
  • copy item type with properties along with the cell from one dgn(source) to another dgn(target)

    Samuel Wiklund
    Samuel Wiklund
    Hi, I would like to have some help as the title reads. I have this code in C#: public static void ExportDgnModel2D(string outDirectoryName) { var outPutPath = Path.Combine(outDirectoryName + "_2D.dgn"); string sourceFilePath = @"C:\WSP…
    • 23 days ago
    • MicroStation Programming
    • MicroStation Programming Forum
  • [PS C++\C#]二次开发能获得出图时的那张形状图片吗?

    霜 胡
    霜 胡
    PS出图时候的那张标注了尺寸信息的图片,目前SDK中有接口可以得到吗?C++或者C#都可以
    • Answered
    • 23 days ago
    • Bentley 中国优先社区
    • ◆ 二次开发(MicroStation编程, ProjectWise编程等)
  • [ORD 中国版 C#] 纵断面 实现插入圆形竖曲线

    白 青壮
    白 青壮
    版本号:10.10.21.121 想用代码实现类似“纵断面-曲线-插入任意曲线-插入圆形竖曲线”的功能,如下图 在这个功能操作过程中,先选择两个已有竖曲线,然后输入半径。其中创建圆弧曲线的方法在ProfileCircularArc中貌似没有实现,麻烦给一个示例,谢谢。 还有一个问题, ProfileCircularArc的Create3方法中的startDirection是一个什么值,是角度,弧度,还是tan值。这个参数一直没有搞明白,也没有测试出来。 再次谢谢
    • Answered
    • 23 days ago
    • Bentley 中国优先社区
    • ◆ 二次开发(MicroStation编程, ProjectWise编程等)
  • C# 如何获取多个选中的元素,并且判断每个元素是否是SHPE

    UNA UNA
    UNA UNA
    获取鼠标选中的三个元素,并且判断出SHPE的出来
    • 24 days ago
    • Bentley 中国优先社区
    • ◆ 二次开发(MicroStation编程, ProjectWise编程等)
>