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

    Cesare Caoduro
    Cesare Caoduro
    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…
    • 1 month ago
    • MicroStation Programming
    • MicroStation Programming Forum
  • [.net c#] [ORD 10.10] Get element template

    Ivan Petrov
    Ivan Petrov
    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…
    • 4 months ago
    • MicroStation Programming
    • MicroStation Programming Forum
  • [CE U17 C#] Customize the ribbon with XML

    Dart Vader
    Dart Vader
    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…
    • 4 months ago
    • MicroStation Programming
    • MicroStation Programming Forum
  • [CE U17 C#] Import Points Cloud

    Dart Vader
    Dart Vader
    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…
    • 4 months ago
    • MicroStation Programming
    • MicroStation Programming Forum
  • 关于使用ORD打开CAD的dwg文件以后,里面的元素类型问题

    fanghua wei
    fanghua wei
    使用ORD打开CAD的平面图以后,发现CAD里面的线元素在ORD里面会有两种类型: 一种是Line,另一种是Complex Chain。 因为我需要根据获取的元素类型来进行下一步的操作, 请问这两种类型有什么区别?Complex Chain可以认为是多段线么?
    • 6 months ago
    • Bentley 中国优先社区
    • ◆ 二次开发(MicroStation编程, ProjectWise编程等)
  • Getting Area from a Complex Shape

    Joe Spirk
    Joe Spirk
    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…
    • Answered
    • 6 months ago
    • MicroStation Programming
    • MicroStation Programming Forum
  • Open a .dgn file in background(batch processing)

    Deblina Sarkar
    Deblina Sarkar
    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).
    • 7 months ago
    • MicroStation Programming
    • MicroStation Programming Forum
  • MicroStation CONNECT - Open Design File

    Ubaidullah Qureshi
    Ubaidullah Qureshi
    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…
    • 7 months ago
    • MicroStation Programming
    • MicroStation Programming Forum
  • IntegrationTest.

    Ivan Petrov
    Ivan Petrov
    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…
    • Answered
    • 10 months ago
    • MicroStation Programming
    • MicroStation Programming Forum
  • [CONNECT Update 16 C#] Ellipse to arcs conversion

    Damian Holubowski
    Damian Holubowski
    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. …
    • over 1 year ago
    • Developers and Programming
    • Developers and Programming Forum
  • [CONNECT Update 16] GetStringFromMstnResource

    Jon Summers
    Jon Summers
    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…
    • over 1 year ago
    • MicroStation Programming
    • MicroStation Programming Forum
  • 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?

    Joe Spirk
    Joe Spirk
    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…
    • over 1 year ago
    • MicroStation Programming
    • MicroStation Programming Forum
  • CONNECT C# U16.2 What is the difference in behaviour between Element.GetNativeElementRef() and Element.GetNativeElementRefFromDescr() and when should each be used?

    Francois Grobler
    Francois Grobler
    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…
    • Answered
    • over 1 year ago
    • MicroStation Programming
    • MicroStation Programming Forum
  • [CONNECT] Tool Development

    Jon Summers
    Jon Summers
    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…
    • over 1 year ago
    • MicroStation Programming
    • MicroStation Programming Forum
  • 15. How to install pre-requisites .NET Framework required for installing AutoPIPE?

    Mike Dattilio
    Mike Dattilio
    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…
    • over 1 year ago
    • AutoPIPE
    • AutoPIPE Wiki
  • [CE U16.2 C#] Bridge between Bentley.Geometry.SolidPrimitive and Bentley.DgnPlatformNET.SolidKernelEntity to use Bentley.DgnPlatformNET.Modify Boolean operations?

    Francois Grobler
    Francois Grobler
    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…
    • Answered
    • over 1 year ago
    • MicroStation Programming
    • MicroStation Programming Forum
  • OpenPlant C# Addin - Connect to Microsoft Access .mdb file in 64bit process

    IronMonkey
    IronMonkey
    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…
    • over 1 year ago
    • OpenPlant | AutoPLANT
    • OpenPlant | AutoPLANT Forum
  • picking elements from reference files which are not active

    Varsha Reddy
    Varsha Reddy
    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…
    • over 1 year ago
    • MicroStation Programming
    • MicroStation Programming Forum
  • [CONNECT C++/.NET] TextBlock Help

    Jon Summers
    Jon Summers
    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…
    • Answered
    • over 1 year ago
    • MicroStation Programming
    • MicroStation Programming Forum
  • [CONNECT Update 16 ElementAgenda] Why can't .NET ElementAgenda Draw its contents?

    Jon Summers
    Jon Summers
    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?
    • over 1 year ago
    • MicroStation Programming
    • MicroStation Programming Forum
  • [Connect .NET] Problems when using dark themed UI

    EvanH
    EvanH
    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…
    • over 1 year ago
    • MicroStation Programming
    • MicroStation Programming Forum
>