• [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
  • accessing the information of the dgn without reading the references with IModel ODBC Driver

    Diego Paredes
    Diego Paredes
    how to get data of dgn model without references another dgn files with ODBC Driver
    • 1 month ago
    • MicroStation
    • MicroStation Forum
  • [C#, ORD 10.12] To change the display style of Eement.

    BasisSoft BDN
    BasisSoft BDN
    Hi. I need to change the display style of a element to wireframe. My goal is that view and element have different display style. Do anyone know how to do change display style of element in C# API? Thank you.
    • 2 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
  • [MSCE C#] how to set Global Origin

    Nina Shepel
    Nina Shepel
    hi I am trying to place an element in C# Addin .Net, but since the default global origin of the seed file is not (0,0,0). I am unable to place the element at the correct coordinates. I tried to change the global origin with this code, but it didn't…
    • 10 months ago
    • MicroStation Programming
    • MicroStation Programming Forum
  • Is it possible to import dgn files to a active dgn file as models in C#

    Samuel Wiklund
    Samuel Wiklund
    I would like to find a way to import dgn-files (models) from folder to a active dgn as models using C#
    • 11 months ago
    • OpenRoads | OpenSite
    • OpenRoads | OpenSite Forum
  • Fence only interact with specific element types

    Keith Ouellet
    Keith Ouellet
    Hello All, I have written a routine to generate a shape from a series of points and then utilize the shape to define a fence from element. I would like to process the fence in two separate routines one that will clip normal element type like Lines…
    • over 1 year 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
  • Cannot create MicroStation Connect plugin project in Visual Studio 2019

    Jiayi LI
    Jiayi LI
    Hi, I am trying to to develop a plugin for MicroStation with .net framework, following this tutorial : https://communities.bentley.com/products/programming/microstation_programming/w/wiki/52303/introduction-and-prerequisite I have those installed…
    • Answered
    • over 1 year ago
    • Developers and Programming
    • Developers and Programming Forum
  • [MicroStation CONNECT Update 16 C# WPF] Is dynamic toolbox possible?

    Frank Schneller
    Frank Schneller
    Hello, folks! For once, SDK has a rather extensive example for programming WPF applications. This example is called WPFdemo. Here you can open a dockable toolbar with 'wpfdemo open5'. So far so good. But now I would like this toolbox to behave like…
    • 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# CONNECT Update 16] ElementPropertiesSetter.SetFillColor does not set the fillcolor?

    Frank Schneller
    Frank Schneller
    Hi, ElementPropertiesSetter.SetFillColor does not set the FillColor of e.g. a Shape, as one might think. What works perfectly with ElementPropertiesSetter.SetColor does not work here. In DgnPlatformNet.chm there is a note about this: Will not add…
    • Answered
    • over 2 years ago
    • MicroStation Programming
    • MicroStation Programming Forum
  • [C# CONNECT Update 16] Automatically create complex shape when the maximum number (5000) of vertices for a shape element is exceeded

    Frank Schneller
    Frank Schneller
    Hello, As you know, a shape stops at 5000 vertices. When this limit is reached, I want my method to automatically create a ComplexShape. Here is an excerpt from my source code, where this works with <= 5000 for pure Shape elements. With more than 5000…
    • 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
  • [C# MicroStation CONNECT update 15] IPC IModelMessage.SendMessage seems to limit number of chars allowed to be passed (255 max)

    Mervin Bowman
    Mervin Bowman
    Using the IModelMessage.SendMessage() it seems that messages are restricted to 255 characters to get passed back to the calling application through IPC. All chars after the 255 limit seem to be stripped off and not send back on a proceeding call. Is there…
    • over 2 years ago
    • MicroStation Programming
    • MicroStation Programming Forum
  • [C# MicroStation CONNECT update 15] When starting MicroStation.exe via Process.Start(), how to redirect "MicroStation Text Window" text

    Mervin Bowman
    Mervin Bowman
    When starting MicroStation.exe via Process.Start(), how to redirect "MicroStation Text Window" text? Here is how the exe is being started and trying to capture the output stream: ProcessStartInfo commandInfo = new ProcessStartInfo(); commandInfo.WorkingDirectory…
    • over 2 years ago
    • MicroStation Programming
    • MicroStation Programming Forum
  • [C# MicroStation CONNECT update 15] Is there a way to extract text from Raster files (like .cit files) opened in MS?

    Mervin Bowman
    Mervin Bowman
    When a .cit file is opened within MicroStation it says that it is read-only and that it is a Raster Attachment. Is there a way to extract text from it through code? Within MicroStation, it seems that the layers have been flattened and no longer useable…
    • Answered
    • over 2 years ago
    • MicroStation Programming
    • MicroStation Programming Forum
  • [C# MicroStation CONNECT Edition Update 15] RealDWG API access through acdbmgd.dll

    Mervin Bowman
    Mervin Bowman
    Hi there, New to the MicroStation SDK - I am familiar with the AutoCAD ObjectARX lib. I see that RealDWG is included with MicroStation but when I am trying to perform the same code I have in AutoCAD it is not working the same within a C# MDL app in…
    • Answered
    • over 2 years ago
    • MicroStation Programming
    • MicroStation Programming Forum
  • BentleyView Initialization in C#

    Smartplant Automation
    Smartplant Automation
    Hi, I am trying to initialize BentleyView application in my C# Class Library using 'Bentley.Interop.MicroStationDGN'. Following is the snippet I am using: private Application application; public Class1() { ApplicationObjectConnector…
    • 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#] 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 C#] Load a Workspace

    Frank Schneller
    Frank Schneller
    Hi, I want to load an existing workspace. It already works with an existing workset. using BD = Bentley.DgnPlatformNET; using BM = Bentley.MstnPlatformNET; // Load Workset BM.Internal.WorkSpaceManager.ActiveWorkSet.WorkSetInfo.Name = myWorksetName;…
    • over 3 years ago
    • MicroStation Programming
    • MicroStation Programming Forum
  • [CONNECT/(V8i); VBA/C#] Using C# DLLs in a VBA-Project

    Niklas Meyer
    Niklas Meyer
    Hello, I have a question. Is it possible to make a C# DLL usable in a VBA project and if yes, how? We already tried with the following Link: https://www.geeksengine.com/article/create-dll.html But in that example you have to move a file in to…
    • over 3 years ago
    • MicroStation Programming
    • MicroStation Programming Forum
>