Browse By Tags

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

    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…
  • [CE U17 C#] Import Points Cloud

    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…
  • [CONNECT C#] After ElementPropertiesSetter the Element is locked

    After using ElementPropertiesSetter, the respective element is locked and cannot be unlocked in the MicroStation afterwards. Did I forget something? public bool SetElementLevel(BDE.Element element, string levelName) { try { BD.LevelId levelId…
  • Why can I not see the SDK download?

    Is it something that you have to pay extra for? I am on connect update 13
  • scan GroupedHoleElement

    I would like ask if it is any way in .Net environment to scan GroupedHoleElement (expect for using interop lib). I tried use (var curveGroup = e.GetCurveVector();) and it exposes components foreach(var curve in curveGroup) { CurvePrimitive x = curve;…
  • [V8i C# Addin] VS2017 Community element properties not displayed, showing up as {System._ComObject}

    Good day all, I haven't found a similar question to mine, so i decided to write one. I am using VS 2017 Community Edition, version 15.9.4 and i used the InnovoCAD v8i C# Template as published on the VS Marketplace. The problem I have is that when…
  • Connect C# template for Visual Studio2013

    Hi, Microstation Connect Edition update 8(version 10.08.00.37) and SDK is installed and Visual Studio 2013 is already exist. But When I try to create a new project by using Visual Studio2013, under 'Templates' Bentley for C# is missing. How to resolve…
  • Las file loading without converting into pod

    Hi Team, Programmatically can i load las file directly into MicroStation V8i (SELECTseries 4) Version 08.11.09.829 without converting into pod format ? Thank you, B Daniel.
  • How to get the ECProperty's Group Name?

    Hi All, I am now have a C# addin on top of Microstation EC, my addin now can read all the ECproperties from the DgnECInstance, but i can't tell the property belong to which group, when check the instance properties with Microstation we can see the…
  • TagElement

    Dear Guys i am using MicroStation V8i 2008 Edition and my code is MicroStation C# addin . i am drawing line element and i wanna give an id for that i think TagElement and TagDefinition is the answer but i couldn't find a sample how to use that if…
  • 【C# Microstation V8i】 How to determine if an element is 2D or 3D?

    hello: My Microstation version is v8i ss3, my programming language is C#, and Visual Studio version is 2015 Professional, add-in. As the title says, I want to determine if a Cell contains 3D elements. If it contains, hide this element. Here is my…
  • Microstation connect ElementChangedEvent ChangeTrackKind

    Hi, I overloaded the ElementChangedEvent event and get a ChangeTrackKind value in eventargs.Change Delete = 1, Add = 2, Modify = 3, ModifyFence = 5, Mark = 7, ModelAdd = 9, ModelDelete = 10, AddXAttribute = 11, DeleteXAttribute = 12, ModifyXAttribute…
  • 【C# Microustation V8i 】 How to modify multiple element information ?

    How to modify multiple element information by reading the information in EXCEL, such as the radius of the circle, I have already obtained EXCEL data, and use the data to modify the radius of the circle (for example), using the Rewrite method, But…
  • 【MSTN V8i Addin C# 】How to get all the elements in the model?

    Hello everyone: How to get all the elements in the model, I use the Scan method in the VBA interface but it did't work. Is my code wrong or there are other ways to get the elements in the model? public void Dynamics(ref Point3d Point, BCOM.View…
  • [C# MicroStation v8i ss3] Create a table

    Hello everyone, I want to create a table programmatically in Microstation v8i ss3. My software is vs2015 and the programming language is C#. The content of the form is taken from the user-defined attributes. How can I implement this function? …
  • Does we have the same level of api access(access Bentley DGN files with full fidelity) when develop extension on top of Microstation with a C# addin and a MDL application.

    Hi all, I am new to Microstation development, and recently i want to develop an extension which is to "read" DGN file data(geometry, properties, reference...), i am not familiar with the MDL development environment( especially about the make file…
  • Is there a process limitation to the bentley.interop.microstationdgn?

    We need to process approximately 200,000 dgn files. We would like to process these files on a server for obvious reasons. We have created a c# script that uses the bentley.interop.microstationdgn library. The script works for a while for like maybe…
  • [V8i C#] How to get the DisplayName of a property from PropertyDef

    I'm writing an add-in in C# using the Bentley Map API where I need to show the DisplayName of a property (of a feature) but in PropertyDef there's no such property than can get me the DisplayName. So how can I get the DisplayName of a property from…
  • RE: [V8i C# MDL] How do I marshal a MDL structure in C#

    Hi Darren, I know this question is from a long while ago, but maybe this can assist someone having the same problem. This answer is in response to your bigger question "How do I marshal a MDL Structure in C#". I have created a class for marshaling…
  • Copy One Model Element to another Model in Single DGN

    HI All, Have any idea about copy model element to another model use Bentley C# Code.. I have code for copy model 1. ModelReference MdlRef = msApp.ActiveDesignFile.Models.Copy(msApp.ActiveDesignFile.DefaultModelReference, null, null ); but…
  • [v8i C#] CadInputQueue - wait?

    Is there a way to wait for a previous CadInputQueue function to complete before invoking the next? for example: mstn_app.CadInputQueue.SendCommand( "MOVE ICON" ); mstn_app.CadInputQueue.SendDragPoints( ref point, ref point2,1); I would want to…
  • [v8i C#] CadInputQueue

    What is the difference between CadInputQueue.SendDragPoints and CadInputQueue.SendAdjustedDragPoints? I cant seem to find any literature explaining what they do. Thanks