Browse By Tags

  • 【msce c#】利用sewbodies进行相邻形状缝合,部分形状缝合失败

    利用sewbodies进行多个相邻形状的缝合,元素筛选时元素数量正确。 形状元素转换为网格后进行缝合,结果中部分元素缺失了,请问这是什么原因呢? A-Test - 副本.dgn
  • [MStn CE U17.2 C#] Hide/Unhide levels of referenced/nested reference file.

    Hi Community, I'm currently attempting to hide elements located within a specific level name. These elements are within a reference file, and sometimes they are nested within other references. I've tried several workarounds found in this forum, but…
  • Change Class of element from Primary to Construction using C#

    Using Microsation Connect Update 16. I would like to change the class of a element from Primary to Construction using C#. This is what I have but it doenst change the class. I want to change class of elements with transparancy as you can see in…
  • 【MSCE C#】网格拉伸功能函数

    请问网格拉伸成体积块的功能函数是哪个呢?功能如下图
  • [MStn CE U17.2 C#] Place reference at a point on sheet

    Hi Community, I'm currently working on attaching a reference and positioning it on a specific location on a sheet. While I've managed to accomplish this task, there's something I didn't fully grasp, which is hindering my ability to control certain…
  • 【msce】相交地形网格如何提取?

    利用mdlPop_elementDescrFromElementDescrDifference函数进行地形网格剪切实体可以实现 如何获取地形网格与实体的相交位置地形网格呢?或者从剪切完成后实体如何提取网格面呢?
  • MS C# 切图方法切割位置设定问题

    利用教程中图纸自动生成工具进行切图出图。 自定义设置setclipelement中shape元素,完成出图后,切割位置与shape元素位置不一致 shape元素位置如图一中描绘形状,图二为切割后图纸地形元素发生切割,但位置与shape不一致 请问是哪个属性设置的问题吗?切割的元素边界应该是曲线吧
  • C#切图出图方法切割错误

  • C#切图出图方法切割错误?

    利用开发基础教学中图纸自动生成工具方法进行剪切出图。 设置完成后,模型被剪切但与设定的剪切元素 view.SetClipElement(shape) shape位置不一致 具体情况如下,设定的shape元素位置描绘出来如图,剪切后图纸如图2,图2中图被剪切少去了一段,但是与定义shape位置不同。 请问这是什么原因呢?是哪个参数设置错误吗?实际被shape剪切后获取的边界该是切割出来曲线。
  • [V8i][C#] Get current ActiveDesignFile.FullName when addin app is automatically loaded

    Hi everyone, I'm using this code to get current ActiveDesignFile.FullName of a DGN file, it works fine if I load addin app via key-in cus my DGN is fully loaded but does not working via MS_DGNAPPS. This code is in my Main() func. My addin app is automatically…
  • [v8i][c#] load addin from a folder in mdlapps folder

    Hi everyone, I'm trying to load an addin from "MapHubAddin" folder in mdlapps folder so I set MS_DGNAPPS variable like this "folder-name"\"addin-name" but it seems it always ignores the folder's name and run the addin in mdlapps which was the…
  • [CONNECT Update 17 C#] CreateLineElement1 throws a runtime error, but with CreateLineElement2 everything is ok?

    Hi, I need the method CreateLineElement1 to write something similar to the example communities.bentley.com/.../8788. However, when testing with this method, it throws me the following runtime error: System.ArgumentException HResult=0x80070057 Message…
  • [V8i][C#] set Form text UTF-8

    Hello every one, I'm trying to set my form text utf-8 but still don't know to do this, please give me some advices. Thank you all!
  • 【MSCE C#】Addin 实现线切割实体并保留两侧元素的功能,使用ElementCopyContent复制元素可能出现错误

    老师们好,我在 ElementCopyContent的使用中遇到了问题。 我把通过LineElement作为切割一个实体,并保留两侧的功能做成了方法。具体的实现,是用ElementCopyContent复制源实体两份,先用BooleanCut剪切第一个复制体,然后将LineElement的CurveVector的方向对调,剪切第二个复制体,将两个被剪切过的复制体输出。输出前判断下体积,如果体积相当,则认为没有剪切到实体,只返回第一个复制体。 这个方法被用在OnDataButton中。如果创建的模型简单…
  • Basic DgnFile Usage

    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…
  • Cell property in OpenRail Designer that shows if it is annotated?

    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…
  • [MSCE U17 SDK C#] sample code: what does Session.ActivateContextualTabSet function do?

    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…
  • [Microstation CE Update 17] [C#] | Update buffer | Undo previous change

    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…
  • Changing orientation of the reference

    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…
  • [CONNECT Update 17 C#] Set active Multiline Style

    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…
  • 怎么根据属性的标签名称和属性名获取属性值

    我是先拿到所有IDgnECInstance,然后在遍历取到IDgnECInstance上的所有属性名和属性值的,相同属性名会覆盖掉,比如元素ID:73655
  • PointStringElement怎么获取几何信息

    我没有找到合适的API来获取 PointStringElement 上的点集合。 如果点串只有一个点可以根据 GetOrigin() 方法拿到。但是如果是多个点,我没有找到合适的API来取。
  • Dgn file hash.

    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…
  • [PS C#]最新版本的SDK能用C#提取钢筋和混凝土信息了吗?

    ProStructures最新的SDK能使用C#取得钢筋的属性什么的吗?或者说通过C#在钢筋混凝土这块能做些什么事
  • XDataTreeNode如何新建一个模板 如何修改读取到的XDataTreeNode的属性值

    阅读过这篇问题 RE: [MS C#]咨询老师一下,Element Templates的属性信息如何获取? 我写了这样修改XDataTreeNode的属性值的 但是运行后没有对dgn中的模板进行修改想知道如何代码修改dgn中的模板 也想知道如何新建一个模板添加到dgn中。