• [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…
    • 29 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
    • 1 month 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…
    • 1 month 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…
    • 1 month 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…
    • 5 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…
    • 5 months ago
    • MicroStation Programming
    • MicroStation Programming Forum
  • 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
    • 7 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).
    • 8 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
    • 11 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 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
  • [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
  • 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
  • C# MS16 .NET Attach and edit item types to a model

    Stephen Holmes
    Stephen Holmes
    Hello All Using C# I can create item types and attach them to elements, but cannot see how to attach an set of ItemType properties to a dgn model? I can get to the model as a DgnModel and ModelInfo I can get to my ItemTypeLibrary and ItemType …
    • Answered
    • over 2 years ago
    • MicroStation Programming
    • MicroStation Programming Forum
  • C# .NET MS Update 16 View Attributes for Markers

    Stephen Holmes
    Stephen Holmes
    Using C# .NET MicroStation Update 16 I am looking to control the display of Markers in the View Attributes of each of the 8 views. Interop...Utilities.ComApp.ActiveDesignFile.Views[1]. gives me access to Fill On, Text On etc but no the Markers On…
    • Answered
    • over 2 years ago
    • MicroStation Programming
    • MicroStation Programming Forum
  • [CONNECT UPDATE13 .NET] UnloadAddIn

    Vitor Almeida
    Vitor Almeida
    OS: Windows 10 Application: MicroStation Connect Edition update 13 - v10.13.01.01 Language of the Application: C# .NET Framework: 4.7.2 Goal: To unload the AddIn when MicroStation Connect closes a file. Workflows to support: Workflow 1…
    • over 2 years ago
    • MicroStation Programming
    • MicroStation Programming Forum
  • [CONNECT UPDATE 15 C#] NotificationAdministrator

    Damian Holubowski
    Damian Holubowski
    Hello, I wanted to catch messages from notification panel of microstation. I can catch messages with green underline with AddIn.MessageCenterWriteEvent. But I can't catch message with red underline. I found NotificationAdministrator with description…
    • over 2 years ago
    • MicroStation Programming
    • MicroStation Programming Forum
  • [C#, VB.net CONNECT Update 13] CreateDesignFile method causes an exception

    Paolo Cherubini
    Paolo Cherubini
    Gents, I’m looking for solve an issue that occur in the following conditions: a WPF Microstation Connect AddIn developed in C# is running an external application (developed in vb.net) call the method Application.CreateDesignFile as follows: …
    • over 2 years ago
    • MicroStation Programming
    • MicroStation Programming Forum
  • C#.net - Fillet between 2 Dsegment3D

    Manh Tran
    Manh Tran
    how to create Fillet between 2 DSegment3d? and How do can I Chain all of them together inC#.net?
    • Answered
    • over 2 years ago
    • MicroStation Programming
    • MicroStation Programming Forum
  • [MicroStation 10.14 C#] Create Note dimension element text

    Mike Robertson
    Mike Robertson
    Referencing a previous post about creating dimension elements in C#: https://communities.bentley.com/products/programming/microstation_programming/f/microstation-programming---forum/112608/c-connect-how-to-create-dimension-elements I've been trying…
    • Answered
    • over 2 years ago
    • MicroStation Programming
    • MicroStation Programming Forum
  • [CONNECT U14 C#] MicrostationDeveloperShell.bat returns \Microsoft unexepected at this time.

    Luis Fraguada
    Luis Fraguada
    Hello All. First post, please be kind! I'm just getting started with writing plugins for MicroStation, though I typically work on writing plugins for Rhino 3D. My goal is to write plugins in C# with Visual Studio 2019. I've downloaded and installed…
    • Answered
    • over 3 years ago
    • MicroStation Programming
    • MicroStation Programming Forum
  • [CONNECT U14 C#] Convenient way to check for intersection between LineElement/DSegment3d/CurveVector

    Kevin Richard Anggrek
    Kevin Richard Anggrek
    Hi all, I am looking for a simple way to find whether two lines are intersecting with each other. I am well-aware that there are several methods that can be used to find the intersection point between line elements using the NET API such as the CurveCurve…
    • Answered
    • over 3 years ago
    • MicroStation Programming
    • MicroStation Programming Forum
  • [CONNECT U14 C#] Questions about the Formatter for the NET API

    Kevin Richard Anggrek
    Kevin Richard Anggrek
    I have questions regarding the usage of the formatter for NET API based on http://www.la-solutions.co.uk/content/CONNECT/DgnPlatformNet/Mensuration.htm : 1. In the article, it is mentioned that the formatter is Initialised using active DGN model coordinate…
    • Answered
    • over 3 years ago
    • MicroStation Programming
    • MicroStation Programming Forum
  • [CONNECT U14 C#] Getting the Vertices of Elements in MicroStation NET API

    Kevin Richard Anggrek
    Kevin Richard Anggrek
    Hi all, I am familiar with the GetVertices() Method of several Element Classes under the Bentley.Interop.MicroStationDGN. In NET API, which method of CurveVector is suitable to get the Vertices of a closed element like Shape Elements? I have browsed…
    • Answered
    • over 3 years ago
    • MicroStation Programming
    • MicroStation Programming Forum
  • [CONNECT U14 C#] Question regarding Element Geometry and Mensuration: What is the Innate unit of MicroStation NET API?

    Kevin Richard Anggrek
    Kevin Richard Anggrek
    Hi all, I have a question regarding Element Geometry and Mensuration in the .NET API especially Element-related Classes and Objects under the .NET API using namespaces such as the DgnPlatformNET, GeometryNET, etc. I am currently more familiar with…
    • Answered
    • over 3 years ago
    • MicroStation Programming
    • MicroStation Programming Forum
>