Browse By Tags

  • Add new element to the existing solid element using c#.

    Hi All, I am working with Microstation v8i and Visual studio C#. I am have a dgn with solid element, the solid element having sub elements of bspline curve element as per my client requirement the solid elements should not contain the bspline curve…
  • Shell Creation

    Dear All, I am using Microstation V8i SS3 with c# language. I want to create the shell with 0.3 offset to the Solid element. i am searching the function to do this but i did not get it so any one tell me how we can do this. Thanks & Regards, Karthik…
  • [ C# ] Difference between MicroStation V8i SELECTseries 10 and CONNECT Edition update 15

    Is there a difference for C# MS_INITAPPS to run in MicroStation V8i SELECTseries 10 and CONNECT Edition update 15? Are all of the API calls from the add-in to MicroStation the same in both versions?
  • 老师好,我想请问下,在V8i中 addin开发,定制dgnlib和Robbin界面以后,使用V8i task却找不到图标,定制的菜单工具栏却存在。当我点击一次工具后,关闭再次去点击显示已加载,mdl开发的工具却没有问题,这是操作上的问题吗?

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

    Hi I cannot find a way to hatch a GroupedHole element in the C# API. To hatch a simple Shape I use the following method public static ClosedElement ShapeHatched() { Application app = Utilities.ComApp; Point3d[] pntArray = new Point3d[4]; pntArray…
  • Microstation V8i SS3, C#, replacing text in a cell while placing it in a dgn

    Based on the code here http://www.la-solutions.co.uk/content/CONNECT/DgnPlatformNet/PlaceCell.htm I created a tool for placing cells implementing IPrimitiveCommandEvents. I have some templates prepared in a .cel file. In the placed cells I want to dynamically…
  • 【MS V8I C#】C#元素标注

    我需要的功能是 选择元素 然后获取到面积 标注到当前元素的中心 我选择可以获取到面积 我应该怎么去添加标注
  • 【MS V8I C#】C# 鼠标点击元素事件

    我想实现 鼠标点击一个元素 然后通过获取选择集的方法获取到该元素的ID 然后通过ID去查询 该元素的 面积然后标注到该元素的中心位置 我可以实现通过ID查到该元素 但是我对鼠标事件和获取元素面积这两个有点困难 我看到之前付老师 和郭老师说鼠标需要重新 _OnDataButton 方法 但是具体怎么重新我不太清楚呢 还请各位前辈指点一下
  • 【MS V8I C#】C#获取围删内的元素

    我想实现获取围删选中的元素 然后通过筛选围删的类型和模式取得想要的数据 然后遍历出来 我选择可以获取选择集元素的属性 我应该怎么去获取围删选择的元素 我不知道应该用那个方法
  • 【MS V8I C#】C# 如何获取属性修改的线段和颜色的集合

    我想获取到 线性和颜色用于对属性的修改 不知道应该用什么方法去获取
  • 【MS V8I C#】C# 代码修改元素图层

    其他属性暂时可以修改 当我修改到层的时候就有点困难了 我应该怎么去修改所在层
  • [V8i C#] Active depth between clip front/back

    I'm currently in the progress of trying to make an application, that handles clip columes and clip front/back, but i have a major problem when it comes to the active depth on the clip front/back view. I've set the active depth using the SetActiveDepthByPoint…
  • 【MSTN】【C#】【V8i】Extract cellelement based on the shape of an element

    I drew a CellElement, as shown in the figure, I want to turn it into another shape. This shape is an element created by the CreateShapeElement1 method in the VBA document. Is there any way to realize it, any suggestions would be grateful?
  • [MSTN V8i] [C#]Judge four points on a plane?

    T ake four points at any point. I want to judge whether it is on a plane. My MicroStation version is v8i ss3, Visual Studio version is vs2015 Pro.If there is any way to provide it to me, I am very grateful.
  • [V8i C#] Add Category attribute to a class programmatically

    Hi, in MicroStation V8i (SELECTseries 4), using C# and EC SDK, I am creating EC schema "on the fly" as necessary based on external data source and save it to file (so the schema is not created externally using Bentley Class Editor). I am able to create…
  • c#[V8i] 如何将扫描出来的元素从一个当前文件拷贝到新建的文件中

    各位老师好: 我通过扫描后将元素对象已成功获取,我现在想将该元素拷贝到一个新建的DGN文件的默认model中,我看到有的帖子里说用到ElementCopyContext类,但是我找寻了半天没找到,请问v8i版有这样的方法么?如果没有的话有好的方法实现么?
  • [c# v8i] Addin and VBA. RegAsm error.

    Hi! I'm trying to do my dll (c# addin) available for VBA. I found two articles how to do it: http://communities.bentley.com/products/programming/microstation_programming/f/19569/t/64713 http://www.la-solutions.co.uk/content/DotNet/DotNet-ComServerGuide…
  • [V8i MDL C#] Exchange data between Mdl- and C# applications?

    I use V8i Ss3 and I develop MDL and C# applications. How can I return value from MDL application (written by me) to my C# application by using Microstation or Windows? I cann`t find standart way in Microstation SDK to return value in C#/VBA apllication…
  • MSv8i C# API view vindow position and size

    MSv8i C# API: We can manage viewport of a view through Bentley.Interop.MicroStationDGN.View by get_Extents(), set_Extents(...), get_Origin() and set_Origin(...), that's clear. The display state of the window of a view can be managed by IsMinimized, IsMaximized…
  • [v8i c#] Linkage

    Hello Community, i could use some help with Linkage in c#. I am searching for a function that is equivalent to the MDL function 'mdlLinkage_extractUsingDescr', or a way to get the same functionality or the same information in a c# Add-In. I didn't…
  • [v8i SS2 (08.11.07.443) C#] System.Runtime.InteropServices.COMException...

    I have a C# script designed to scan dgn files in a selected directory and generate a report on the files scanned. The script is written to run outside of microstation and it works fine. The problem is when clients attempt to run more than one instance…
  • [V8i C#] Cancelling XFT LocateOperation on mouse Right-Click

    Hello! I am developing Addin that uses XFT LocateOperation like this: using XFT = Bentley.Interop.Xft; TextIdentifyFeatureLocateOperation oo = new TextIdentifyFeatureLocateOperation(); XFT.locateOp oLocateOp = new XFT.locateOp(); XFT.InputValue…
  • [V8i c#] Issue with the text font change using API

    Problem : 1. If we change the font using api 'currentElement.AsTextElement().TextStyle.Font' , Redraw & Rewrite the element. There is a displacement in the text location. if we use the key-ins, or open manually and change the font. There is no…
  • V8i C# MX com controls

    Hi, Bentley MX ships with com controls for model, string, and point selection, As soon as I include one of these controls on my form and build my project, I get the following error. Could not load file or assembly 'file:///C:/Program Files (x86…
  • [V8i c#] Open design file needs delay

    Open design file needs delay Problem : Application is visible & after opening the Design file, immediately tool bar, menu bar will not display the GUI. If we use Delay for 3 seconds GUI gets displayed. Need to know we are Opening the design…