Browse By Tags

  • Change Class of element from Primary to Construction using C#

    Using Microsation Connect Update 16. I would like to change the class of a element from Primary to Construction using C#. This is what I have but it doenst change the class. I want to change class of elements with transparancy as you can see in…
  • Copy all cells from one dgnfile to another using C#

    Hi, I would like to loop through all cells from one dgnfile and copy them to another dgnfile. I now have a script that opens a seedfile, so I have two dgnfiles open. One source dgn and one target dgn. The target one is a 2D seed file, because I just…
  • Multiple c# addins with multiple versions of assemblies

    We developed several addins for one of our customers in c# with net 4.6.2. Because the addins have individual importance for the customer, some addins don't receive a lot of update. This leads to an situation that some addins use newer version of assemblies…
  • [CONNECT Update 17 C#] Removing Group Holes Elements

    Hi, due to some articles here in the forum ( scan GroupedHoleElement ) I came up with the following workaround to remove e.g. all group hole elements (sub type of a cell element) in the active DGN. This test example currently works because our really…
  • 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).
  • How do I get the formatting for a visible tag using C#?

    Hello, The function below should describe my question quite well. I am running Microstation 10.16.03.11. Best regards // using Bentley.DgnPlatformNET; private static void ReplaceVisibleTagsWithText() { var visibleTags = Session.Instance…
  • [MicroStation CONNECT Update 17 C#] Data point by code

    Hi, is it possible to trigger a data point by code? The coordinates are known. e.g. xy=1000,-1000 So no interaction from the user is required. Regards from Munich Frank
  • [MSCE 10.16.03.11 C#] Subsequent change of the text justification without moving the text

    Hi, Is there a possibility in C# to set a different justification (e.g. from Left Buttom to Center Center) for an already placed text without moving the text? With the following code, the text is unfortunately moved. using BD = Bentley.DgnPlatformNET;…
  • [Microstation Connect C#] Uniquely identify Element Types

    Hello people, so in C# we need to get some info out of a Microstation Element. It might be any displayable element, ie: a SmartSolid, a Solid, a LineElement, a ParametricAttributesElement etc.; anything graphical actually. On this element we call…
  • [Connect Update 15 c#] Scan for Cellheaders

    Good morning, I am running into some strange behaviour that I can't work out. I am writing an app in C# for Microstation Connect update 15 that scans a file for all placed cells. It's a test for some tooling I need to do. But when executing the…
  • [CONNECT Update 16 C#] Drop own LineStyle

    Hi. I would like to do more or less the same thing via C# code as the MicroStation KeyIn "drop linestyle". This should not be done interactively, but all elements (Line, LineString, Shape etc.) should be dropped with LineStyle in the DGN. I had already…
  • Microstation CE addin / How to show a cell element in .net windows form

    hello, I'm trying to show an isometric view of cell element with ElementPreview control into a windows form with no success ! Nothing is shown into the ElementPreview. Here's my c# code extracted from my Microstation CE addin. Can you please advice…
  • [CONNECT U14 C#] Convenient way to check for intersection between LineElement/DSegment3d/CurveVector

    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…
  • [CONNECT U14 C#] Questions about the Formatter for the NET API

    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…
  • [CONNECT U14 C#] Getting the Vertices of Elements in MicroStation NET API

    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…
  • [CONNECT U14 C#] Question regarding Element Geometry and Mensuration: What is the Innate unit of MicroStation NET API?

    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…
  • [CE U14 C#] Parametric Cell - Parameters not up to date

    I have a DGN, where I placed a parametric Cell with Variables attached to it (used with constraints). When I only read and write with my function, everything works as expected. When I edit the value of one Parameter inside the Microstation (Element Info…
  • Updating Z values of a linestring element's vertices points. Applying the changes is not showing.

    Currently am using Microstation CONNECT (Update 10). Visual Studio 2015 Professional, c#, updating a DGN file. The concept of my tool is to loop of a collection of selected elements (Linestrings) and compare each line string with one another to see…
  • [CONNECT C#] how to change a dgn file properties (title, comments)

    Trying to figure out how to update a dgnfile's title and comments. I'm talking about the extended file properties. See image below. you get to this by going to the backstage and selecting properties. this was really easy to do in VBA. it was simply…