Browse By Tags

  • PLEASE READ: MicroStation Programming forum best practices

    1. When including code in your post, please use the the SyntaxHighlighter, which is one of the tools in the "Advanced Reply Editor". 2. To let others know the MicroStation release and programming language being used without having to open the thread…
  • [V8i C#] C# code to .ma

    Hi. I would like to know if it is possible to compile C# code to .ma files. I can compile and use the .dll files but can't seem to find anything about .ma files. If it is possible, could someone post steps for it. Thanks
  • Getting element descriptors of subelements after adding complex shape

    When i create a complexstringelement based on the lineelements and finally add the complexstring into modelreference, im able to retrieve the dgnelemid of the complexstring. i need an access to the element ids of the subelements (lineelements) to be…
  • Accessing materials that are attached by level and/or color

    In Microstation materials can be attached directly to element or by level or by color. When material is attached by element I can access it via the API , however when it's attached by level or color I can't find where this information is stored...…
  • V8i C# MX com controls

    Hi, Bentley MX ships with com controls for model, string, and point selection, As soon as I include one of these controls on my form and build my project, I get the following error. Could not load file or assembly 'file:///C:/Program Files (x86…
  • [V8i c#] Open design file needs delay

    Open design file needs delay Problem : Application is visible & after opening the Design file, immediately tool bar, menu bar will not display the GUI. If we use Delay for 3 seconds GUI gets displayed. Need to know we are Opening the design…
  • [V8 C#] Odd behaviour of event handling with IViewUpdateEvents

    Hello, it has been said in this forum that a standalone application could not successfully add a IViewUpdateEvents handler to the running MicroStation instance, since both applications would not share the same memory space. This issue has been commented…
  • Setting TagElement Values c#

    Hi, I am writing a addin with C#, I have been able to add tags to elements with code with : Bentley.Interop.MicroStationDGN.TagSet newGenTagSet = app.ActiveDesignFile.TagSets.Add("SomeTagSetName"); and then //add the tag set to a element someElement.AddTags…
  • [V8i c#] Is there a API to import the level library

    Is there a API to import the level library Problem: Is there a API to import the level library which is correspond to the below key-ins?? MicrostationDGNApp.CadInputQueue.SendCommand("LEVELMANAGER DIALOG OPEN"); MicrostationDGNApp.CadInputQueue…
  • Re: Access all the opened design files in c#

    As Jon indicated, the MicroStation VBA environment and help are a great resource to get familiar with and utilize for testing/prototyping your code. Doing so provides you documentation, a fair number of samples to get started, and an environment that…
  • [V8i c#] Issue with the text font change using API

    Problem : 1. If we change the font using api 'currentElement.AsTextElement().TextStyle.Font' , Redraw & Rewrite the element. There is a displacement in the text location. if we use the key-ins, or open manually and change the font. There is no…
  • [V8i C#] PointCloud - attach to model

    Hello, I'm new here and I have got problem with PointCloud in Microstation V8i SS3. I saw file assembly "Bentley.PointCloud.dll", but I can't do it. Is there anyway to attach file *.POD to DGN in C#? Thanks for any advice and best regards…
  • [V8i c#] Is there a API to Change the grid aspect ratio

    Problem: Need to know the API to change the Grid Aspect Ratio Tried with the ActiveSettings but we have option to change ActiveSettings.GridUnits, and GridReferences and the same is achievable via key-ins 'MicrostationDGNApp.SetCExpressionValue…
  • [V8 C#] Click event handling (not ILocateCommandEvents nor IPrimitiveCommandEvents)

    Hello, I want to use a View (view index = 2) in Microstation as a birds-eye view, so when I click on a location in that view, the main view (view index = 1) is centered and zoomed to that location. The requirements are that only a single click in…
  • V8i and C# InitApp examples ?

    Hi, I get a very minimal c# initapp working well. But .. I don't know how to open Microstation MainForm or to avoid Microstation exiting at the end of mi initapp.... Where can i find examples or documentation? BTW, is there C# Microstation…