Browse By Tags

  • [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…
  • 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…
  • how to start microstation connect edition programmatically in c#

    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…
  • how to read dgn file with Bentley.DgnECPlugin3

    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…
  • OpenBridge crashing when trying to debug SDK example

    All, I am trying to debug the example for OBM but I am facing an issue while starting the applcation. OpenBridge is crashing straight on the first line of code ObmGeometryModelConsensusSDK.Initialize(); I have copied the dlls provided in the redist…
  • [.net c#] [ORD 10.10] Get element template

    Each element can be assigned a template. How can I get the template associated with the specific element by Id or Element? I found out how to attach a template to a specific element but can't find an API to get the current element template. ElementTemplateMgr…
  • [CE U17 C#] Customize the ribbon with XML

    Hi guys. I continue working on the C# addin for MicroStation CE. And I created my custom ribbon with an XML file which is loaded to MicroStation from the MS_RIBBONXML variable in my custom CFG file placed in the "config/appl" folder. All works fine. But…
  • [CE U17 C#] Import Points Cloud

    Hello guys. Is it possible to import the points cloud file (for example LAZ) into a new empty 3D DGN file? As I saw there are a few similar questions that were created a few years ago. And in all questions, the answers say to use C++. But could do this…
  • 关于使用ORD打开CAD的dwg文件以后,里面的元素类型问题

    使用ORD打开CAD的平面图以后,发现CAD里面的线元素在ORD里面会有两种类型: 一种是Line,另一种是Complex Chain。 因为我需要根据获取的元素类型来进行下一步的操作, 请问这两种类型有什么区别?Complex Chain可以认为是多段线么?
  • Getting Area from a Complex Shape

    I'm a bit new to programming for Microstation Connect but I've hit a wall that I can't seem to get around. I'm asking the user to select any number of objects, then processing the objects based upon element type (Line, linestring, shape, ellipses, etc…
  • Open a .dgn file in background(batch processing)

    Hello all, I am new to Microstation Connect Edition api. I will like to know if we can open a .dgn file in background(batch processing).
  • MicroStation CONNECT - Open Design File

    Hi, I am new to this forum and therefore request pardon in advance if I am not following any of the rules. I had developed an application (in VB.Net) to search & replace text in MicroStation V8i. Below is my Code I used to open Design File which…
  • IntegrationTest.

    Hi, I want to cover my code with integration tests. Is it possible to open the dgn file for tests? how I tried to solve it: DgnDocument targetDgnDocument = DgnDocument.CreateForLocalFile(dgnFilePath); DgnFileOwner dgnFileOwner = DgnFile.Create(targetDgnDocument…
  • [CONNECT Update 16 C#] Ellipse to arcs conversion

    Hello, I need to convert ellipses with different Primary and Secondary Axis to multiple arcs with the same Primary and Secondary Axis. In Microstation I can do that using Facet tool but I need to achive the same result doing it programatically. …
  • [CONNECT Update 16] GetStringFromMstnResource

    I notice that the .NET Session class has member GetStringFromMstnResource . It looks like that function gets a string from a message list stored in a .rsc file, which is what we've done for MDL and C++ apps for donkey's years. In a .NET AddIn , how…
  • I want to create a program where I can open a .dgn from an excel toolbar, select items, and export the data back into my excel table. Is this possible?

    I am using .NET, would VBA be more ideal to this? I am assuming that when microstation opens, I will need to send a command to microstation to automatically load the mdl app and start that. Then the user will select the items who's attributes they…
  • CONNECT C# U16.2 What is the difference in behaviour between Element.GetNativeElementRef() and Element.GetNativeElementRefFromDescr() and when should each be used?

    Hallo, In this post, Jon Summers commented the following: "I notice that there is a similar function public IntPtr GetNativeElementRefFromDescr() . How that differs from GetNativeElementRef() is not clear." Have you since found the difference between…
  • [CONNECT] Tool Development

    dominic SEAH asked: "Will the SDK also cover the Tech Preview tools or will this be after they go to commercial release?" The CONNECT SDK provides a set of classes that derive from DgnPrimitiveTool . Several supplied classes inherit from that base class…
  • 15. How to install pre-requisites .NET Framework required for installing AutoPIPE?

    Applies To Product(s): AutoPIPE Version(s): ALL; Area: installation Date Logged & Current Version April 2022 AutoPIPE Vessel 42.04.00.091 - AutoPIPE 12.07.00.346 Problem: The following appears when installing…
  • [CE U16.2 C#] Bridge between Bentley.Geometry.SolidPrimitive and Bentley.DgnPlatformNET.SolidKernelEntity to use Bentley.DgnPlatformNET.Modify Boolean operations?

    I have a DgnPrimitiveTool derivative that generates solids into a DGN from data in a database as an interpretation of the data. This tool can generate individual Solid elements using the SolidPrimitive.CreateDgnBox(DgnBoxDetail) function with no problem…
  • OpenPlant C# Addin - Connect to Microsoft Access .mdb file in 64bit process

    Hi, I am developing a C# Addin for OpenPlant Modeler Connect Edition that reads data from the specification db (.mdb, Microsoft Access). How OpenPlant connect to Microsoft Access Database (.mdb), for example the specification database? Is there…
  • picking elements from reference files which are not active

    I am working on multiple reference files where I need to get the element Ids of the elements even if that reference file is not active. I am using the below code to pick elements. I am able to get elements that are from active reference file only, when…
  • [CONNECT C++/.NET] TextBlock Help

    Both the DgnPlatformNet and the MicroStationAPI help documents provide terse information about the TextBlock class. Concealed in the MicroStationAPI help document are some examples that show how to use the TextBlock API. However, they are cunningly…
  • [CONNECT Update 16 ElementAgenda] Why can't .NET ElementAgenda Draw its contents?

    Jan made this comment in another thread: It is one of the disadvantages of NET API, because in C++, RedrawElements accept also ElementAgenda . Why doesn't the .NET ElementAgenda implement the Draw() method that C++ provides?
  • [Connect .NET] Problems when using dark themed UI

    Hi When using dark themed UI I get some problems in WinForms dialogboxes including DataGridView items: The background is still white so only the hilited field is readable. This is tested in update 15 and 16.1. What can I do to fix this problem or…