Browse By Tags

  • Get the DgnModel from model by name in C# Microstation API

    Hi, I would like to get the DgnModel by the name of the model. This is what I have: DgnModel activeModel = Session.Instance.GetActiveDgnModel(); But this only get the DgnModel from the active one.
  • Rename cell name in microstation dgn model

    Hi, i would like to rename the cell name when I copy the elements from source dgn model to target. Or what I want to do really is to remove the 3 first characters of all cell name. So for example I have a cell with the name "3D_object", I just what…
  • [MS C#]标注的文字如何放在中间?

    各位老师,对于尺寸标注的文字,如何放在线内?感觉这个宽度是能够把文本放在中间,但实际会放在外面,我希望能够指定文本的位置,有设置Text_Location_INTEGER属性,但是没用
  • [MS C#] 如何设置标签的字体颜色

    各位老师,MSCE中的TagElement如何设置字体颜色,我参照 https://www.yuque.com/bentleysystems/nkoply/iz84pn#Y3jvZ 对标签元素的讲解,尝试按以下方法进行设置 ArcElement arc = new ArcElement(dgnModel, null, cp, 400 * uorPerMilliMeter, 400 * uorPerMilliMeter, 0, 0, Angle.PI.Radians * 2); setter.Apply…
  • 如何依据两形状或多形状元素进行实体元素生成?

    目前由多个形状构建了坡面(或由一复杂形状进行表示),后方存在另一形状面代表另一坡面。 情况如图所示: 请问如何根据这两坡面构建一填充实体呢? 填充方式是想依据复杂形状向后坡面拉伸后被剪切。
  • C# 用getviewbox获取到了8个点,不知道哪个是VIEW2的

  • C# 提醒无法从id为2060的POINTCLOUDPROCESS加载对话框

    用的是mdl load pointcloudprocess;pointcloudprocess read lasfile E:\las\cgpt000174.las
  • C# MicroStation CONNECT Edition如何获取绘图模型?

    就是V8i中有获取绘图模型的,那在CE中如何获取绘图模型
  • 这个线标注的显示的,要怎么才能显示实时

    ,我现在是点击了第一个点,再点击第二个点然后才能显示出红色居民地这块,要的效果是点击第一个点的时候就可以显示出这条线
  • [c#][V8i] Getting unknown error when get ComplexShapeElement.Area()

    Hello everyone, I'm getting an unknown error when trying to get ComplexShapeElement.Area(), it says as image shown below, please give me some advices to solve this issue. Thank you all!
  • [c#][V8i] Getting unknown error when get ComplexShapeElement.Area()

    Hello everyone, I'm getting an unknown error when trying to get ComplexShapeElement.Area(), it says as image shown below, please give me some advices to solve this issue. Thank you all!
  • [ORD 10.12, C#] Updating Nested Attachments value using C# API

    Hello. I changed Nesting Depth of Attachment using C# API. In Reference dialog, Nesting Depth value is changed but display don't update. After I change Nesting Depth in reference dialog, display is updated. Let me know how to update display after…
  • 三维填充类似函数或碰撞剪切函数相关

    目前构建实体过程中,周围存在多段路径构建实体,想在实体包围范围内生成一块实体进行填充。 示意图如下:中间为想生成实体的截面,直接进行截面沿轴线拉伸,实体间存在重叠冲突等。 考虑拉伸生成实体后与周边元素进行自动剪切,但可能存在周边元素不易获取问题。 疑问是否有三维填充类似函数,或其他检测冲突进行剪切的函数方法?
  • c# 使用ElementGraphicsProcessor工具 普通实体和智能实体三角化后网格比例不同

    我这边MS的版本是update14,使用.net开发 在试用ElementGraphicsProcessor工具对元素进行三角化时,我发现对于普通实体和智能实体三角化后比例会不同,如下是测试代码 private MeshTest(System.IntPtr mdlDesc) : base(mdlDesc) { MeshToolTest tool = new MeshToolTest(); List<Element> els = new List<Element>(); …
  • C#鼠标右键如何获取光标位置和对应视图

    右键点击进入后如何获取到光标实际位置
  • [v8i][c#] get arc element's vertex list

    Hello everyone, I want to get arc element's vertex list or coordinate list, it always return error when I tried to use AsVertexList() function. Please give me some advices. Thank you so much!
  • [C#, ORD 10.12] To change the display style of Eement.

    Hi. I need to change the display style of a element to wireframe. My goal is that view and element have different display style. Do anyone know how to do change display style of element in C# API? Thank you.
  • 关于调用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…
  • C#后台代码添加了窗口停靠,但是有时候就不能停靠

    ,有时候 会失效无法停靠
  • 如何C#右键点击视图2获取到点的位置(X,Y,Z)

  • 如何C#修改菜单隐藏显示

  • 怎么通过C#代码来添加配置变量

  • MicorStaiton使用C#编程建立约束

    请问MicroStation中如何使用C#建立约束?是否可以提供参考代码? 查了SDK的Example,只有C++的例子constraint2ddemo,里面 需要使用Constraint2dManager::AddSolverData方法把Constraint2dSolverData添加进去,但是.net API中的Constraint2dManager只有AddConstraint(ElementAgenda elements, Constraint2dType consType, int…
  • 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…
  • [V_08.11.09.357][C#] scan IsVertexList elements only

    Hello everyone, As the subject I mentioned, I want to scan IsVertexList elements only when using ElementScanCriteriaClass, is it possible to be done? Thank you.