Browse By Tags

  • [v8i c#.net] How to connect a specific instance of ustation.exe?

    I am connecting to an instance of Microstation and processing the design file as below, but I don't understand how I can connect to a specific instance of Microstation if multiple instances of ustation.exe are running. The code below connects to an instance…
  • MDL coud not Load by .cfg file

    Hello, I have been creating a MDL addin for microstation using visual studio. I use a config file to automatically load the addin to MS while opening the DGN file. My problem is that i have already created another addin for another project and…
  • [v8i vb.net] Fence.DefineFromModelPoints throws exception for incorrect parameter

    I moved a piece of code from VBA to VB.Net. I have encountered a problem when attempting to define a fence. I get a run time error stating that the parameter is incorrect. This code worked perfectly in VBA, but after converting to .net it fails. I'm stumped…
  • [.net addin] Infrequent problems with .id and .id64?

    Very rarely we encounter a problem where when accessing an element by id/id64 we get an error .net exception that says "Bad element" followed by microstation crashing. I have not been able to reproduce this issue consistently on top of it being extremely…
  • COM error from c# app outside VS?

    I have a c# app developed in visual studio 2012 that references bentley.interop.microstationdgn.dll to process dgn files. When I run the app in studio it works fine but, when I try to run it outside of studio, I get the following error: Retrieving…
  • .NET vs MVBA

    Hi all, Sorry for the naive questions, if they have already been answered on the forum, I am unable to find answers to this question. If they are answered already, please point me to the thread. I would like to know a few things about .NET and MVBA…
  • Entity Framework in v8i AddIn

    I am attempting to create an AddIn that writes data from a dgn file into a sql database via a .net 3.5 compatible version of Entity Framework. When loading and executing the addin, I get the following error: System.ArgumentException: The specified…
  • RE: Dot net application not working in multiple microstation DGN

    Hi Mr. Jon & Mr.Stack I created this using C++ inside Visual Studio 2010. It is a winform application so it will work externally. Please find the Read.h (C++ header file ), where i have written the code to draw blocks give some suggestions. Thanks…
  • Dot net application not working in multiple microstation DGN

    Hi Everyone, I have written one application to create blocks in microstation. Its working fine if one .dgn file is open. If i will open multiple dgn file , its only working in the dgn which was opened first. I used visual studio 2010, C++.net…
  • [v8i SS2 (08.11.07.443) C#] System.Runtime.InteropServices.COMException...

    I have a C# script designed to scan dgn files in a selected directory and generate a report on the files scanned. The script is written to run outside of microstation and it works fine. The problem is when clients attempt to run more than one instance…
  • Create Blocks along center line and count points opened in micro station using Terra scan

    Hi All, I am using Visual Studio 2010 , Microstaion V8i and C++/C#.net I loaded the laser points to microstation using terrascan. I want to create blocks along the center line having certain length and width. i want to count the number of laser…
  • Docktoolbar

    Hi, does anyone have a AddIn example they could share for a docktoolbar. I can get dockpanel working fine, it docks undocks etc. but the Docktoolbar just sits there not docking at a top or bottom tool bar. TIA Dave
  • [C# Addins]How to Save <view.DisplaysFill>settings in dgn file

    Here is the Code: Application app = Utilities.ComApp; View view = app.ActiveDesignFile.Views[1]; view.DisplaysFill = true; ....... EllipseElement elipse= app.CreateEllipseElement1(); elipse.IsFilled = true; elipse.FillMode = MsdFillMode.Filled;…
  • MicroStation Add-in for saving Excel file

    Hello Guys, I'm trying to save an Excel File using a Key-in in MicroStation. I'm revising the codes created by someone and I want to know how this dialog box appears? I want to know also on how I could catch the user's response for this. I'm…
  • How to add user-defined Line in Microstation addins development?

    Hi I'm new to Bentley Communities,Does anyone know of a solution on how I can draw user-defined line with C# in VS2008,I can set the line style in Menu ElEMENT->LINE STYLE->CUSTO M.But I have no idea how to draw it with C# code. I t ried to call <CreateLineElement…
  • How to Add Reference Files Programmatically

    Hello. I'm new to Bentley Communities Do you know of a solution on how I can attach reference files programmatically in MicroStation. I'm using Visual C# 2005 as the programming language. This question was solved in 2011 in the link -- > http:/…
  • Starting Microstation V8i SelectSeries 2 from C#

    Heyas all, Just another .NET Developer moonlighting as a drafter. While in the process of validating V8i SelectSeries 2 for Deployment across my group, I noticed that the Commands I use to start Microstation up no longer seem to work the same way they…
  • Visual Studio alternatives

    After getting sticker shock from reviewing the current pricing structure of VS 2010, can anyone recommend C# compiler alternatives to use with the MS SDK. Was going to go with the 2010 Pro edition until I found out it is only a one year license. Charles…
  • Can you detect a missing .NET Addin (MS_DGNAPPS)?

    Hello, Is there a way to detect or flag when an MDL / .NET addin cannot be loaded? I have a .NET addin that I have created in C# using VS2008. I wish to have it load automatically when a DGN file is opened and I have achieved this by including the…
  • C#: Locate failed when selecting an item in an Attachment

    Hi, In csharp I created a class that implements the interface ILocateCommandEvents to select items from the drawing, but I had problems when I select an item that belongs to an Attachment: Locate fails. Thanks --Lele