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…
  • [.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…
  • 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…
  • 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…
  • [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…
  • 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…
  • C# .NET MS Update 16 View Attributes for Markers

    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…
  • [CONNECT Update 14 C#] Getting all of the Wall Centerlines from a DGN Drawing Automatically

    Hi everyone, I have a question regarding being able to recognize individual wall elements especially the wall's centerlines in a 2D MicroStation Drawing. My end goal is to use the centerline information of each wall object to recreate the wall in…
  • [CONNECT U13 C#] ElementChangedEventArgs gives the same element for eventArgs.NewElement and Element.GetFromElementRefAndModelRef(eventArgs.OldElementRef, eventArgs.OldModelRef)

    Hallo, I'm updating an existing suite of tools in a C# Addin that was previously written for V8i to CONNECT. As part of the update I am replacing the COM Interface calls as much as possible with the NET API calls in the CONNECT Edition. I have however…
  • Read Attribute from Element in C# .Net

    I am using the following code for read the attribute from element by attributeIndex in c# .Net and Microstation V8 2004 Edition.But it shown errors like Unable to cast object of type 'System.Object[]' to type 'MicroStationDGN.DataBlock[]'..Is there any…
  • Microstation v8 Addin

    Is any possible to create Addin for Microstation v8 2004 edition for my .net c# microstation application?
  • Microstation connect

    We have developed some MDL Applications using Pseudo code in V8. As our management decided to purchase Microstation Connect Edition beginning of Jan 2021. (Budget problems) In order to save time, Can we do the MDL migration in two stages, Stage 1 (During…
  • Why can I not see the SDK download?

    Is it something that you have to pay extra for? I am on connect update 13
  • [CONNECT C# .NET] How to associate an ItemType to a parametric model and then create a variation associated with the ItemType?

    Hello, I am using OpenBuildings CONNECT Update 5, I think the version is 10.00.14.18 . 10.05.00.49 (Corrected). I am using the MicroStation Update 12 SDK. I am trying to create a variation (parameter set) in a model but I want to associate the variables…
  • GeoWebPublisher SDK for mods and customization

    greetings, Is there any SDK for developing customs and mods in Bentley ? where can i get one of those? what tools would I need to do such things? thanks