Browse By Tags

  • [MStn CE U17.2 C#] Hide/Unhide levels of referenced/nested reference file.

    Hi Community, I'm currently attempting to hide elements located within a specific level name. These elements are within a reference file, and sometimes they are nested within other references. I've tried several workarounds found in this forum, but…
  • [MStn CE U17.2 C#] Place reference at a point on sheet

    Hi Community, I'm currently working on attaching a reference and positioning it on a specific location on a sheet. While I've managed to accomplish this task, there's something I didn't fully grasp, which is hindering my ability to control certain…
  • [CONNECT Update 17 C#] CreateLineElement1 throws a runtime error, but with CreateLineElement2 everything is ok?

    Hi, I need the method CreateLineElement1 to write something similar to the example communities.bentley.com/.../8788. However, when testing with this method, it throws me the following runtime error: System.ArgumentException HResult=0x80070057 Message…
  • Basic DgnFile Usage

    Environment: Windows 10 Enterprise 21H2 .NET Framework 4.6.2 Microstation CONNECT Edition Update 15 v10.15.02.11 mssdk10150076 Good day, this is a two-part question: How can I iterate over the models in a .dgn file, and then over…
  • [MSCE U17 SDK C#] sample code: what does Session.ActivateContextualTabSet function do?

    Hi Everybody, I am trying to understand the sample code comes with the Microstation CONNECT Edition SDK (Update 17). The sample project I am looking at is at <Mocristation SDK Root Folder>\examples\WPF\WPFDemo\ In the WPFDemoKeyins.cs file of the…
  • [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…
  • Changing orientation of the reference

    Hi Everyone, I'm currently working with MicroStation Connect Edition and using its API to reference a DGN file. I've successfully referenced the file using the MicroStation API, but I'm facing an issue with setting the reference orientation to match…
  • 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…
  • sustainable way for Microstation CE add-in/MDL to be deployed to shared network directory?

    Hi Everybody, I am studying in migrating a set of Microstation MDL files working on Microstation V8i SS10. In the current system, the MDL (.MA) files are deployed in a network folder. With the configuration of MDL directories, they can be loaded by…
  • [V_08.11.09.375][C#] Get All Layers And Elements From Each Layer

    Hi guys, I'm new to Microstation Programing, I have some task but still don't know how to done, please give me some advices. I want to get all Layers from DGN file and convert Layers to an array, then I want to get all Elements from each Layer then…
  • [CONNECT Update 17 C#] Add multiline to element

    Hi, is it possible to retrofit existing elements (line, line strings etc.) with multilines or replace them with multilines? Regards Frank
  • [C#] [Microstation updated 17] - Get element last modified date and user.

    Does the MicroStation API offer a method to retrieve the last modified date and the username for each element? how I can retrieve this data?
  • OpenPlant Modeler CE Update 11 C# - How modify property value of a Saved View

    Hello, I want to modify some properties of the Clip Volume Settings section in a Saved View using C#. The values which I want to apply are items of a list as shown on the picture below. All items are visualized in a dropdown menu. The SetValue method…
  • [C# Add-in] Creating a new UI add-in for MicroStation

    Hello Experts. I'm a new one in the development of the add-ins for the MicroStation. Basically, I had an experience with other CAD systems. And I have a few questions. Hope you can help me. 1) First of all. Where I can find some detailed documentation…
  • [MSCE Update 17 C#] Create BSpline Curve through points

    Hi, I need the same in C# as MicroStation does with the KeyIn place bspline curve points . With the following test code I get a bspline (yellow bspline in the image), but it is not identical to the bspline of the above KeyIn (pink bspline in the image…
  • 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).
  • CE display rule apply to a view C#

    Hi I'm trying to implement a feature to "isolate" elements in drawings. (like on explorer form) my plan is next: 1. Create a display rule foreach (var elementId in elementIdToIsolate) { var elementsConditions = $"element.DgnElementSchema::GraphicalElement…
  • TagElement.GetTagValue() is not returning the values presented in Microstation, what might be wrong? C#

    Hello, I have encountered something I find quite odd. In an application I have written I've used the function GetTagValue() in order to retrieve the value of a TagElement. I have tested this on a few different files and I have gotten the expected…
  • ORD | Get Feature definition.

    ORD | 2021 release 2 update 10 | 10.10.21.04 In Ord, each element has a feature definition. Is there a way to get the feature definition for each element? I have a list of IDgnECInstance. I need to get their feature definition and description more code…
  • [Connect C#] Modifying TextNodeElement documentwidth/textnodeWordWrapLength

    I am trying to modify an existing TextNodeElement and change its document width property. Using analyze element I can see it's listed as a text param: textnodeWordWrapLength. That property does not appear to be exposed in the TextNodeElement or in…
  • How to harvest custion file properties (dgn file) in Microstation C# Addin

    Hello all, I would like to read the Custom File Properties from a DGN file. The image above shows the custom file property 'MY_PROP', which I would like to want to read out. My previous approach (via DgnECInstanceCollection) was unfortunately unsuccessful…
  • [CONNECT 10.10 C#] Missing Fonts

    I’m trying to figure out if there is a way to get a list of missing fonts either by the message center or other means using the API. I want to be able to pull this into a list so that we can make sure the fonts are added to the completed projects.
  • [C# MicroStation CE] Prevent entering modal state / close dialogs

    Hi all, I am currently building an application for processing dgn files using IPC (inter-process communication) method. Everything seems to be working quite nicely except for when a modal dialog is created that will block the current thread, preventing…