Browse By Tags

  • Learning about XFT Move Operation in Map

    HI all! I need to know how use the move operation in Bentley Map. Actually, in C# i write this code: Bentley.Interop.Xft.MoveOp op = new Bentley.Interop.Xft.MoveOp(); Bentley.Interop.Xft.CmdMgrClass mgr = new Bentley.Interop.Xft.CmdMgrClass…
  • 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…
  • [v8i c#] Linkage

    Hello Community, i could use some help with Linkage in c#. I am searching for a function that is equivalent to the MDL function 'mdlLinkage_extractUsingDescr', or a way to get the same functionality or the same information in a c# Add-In. I didn't…
  • 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…
  • Draw Sections along center line and offset to centerline (C# Programming for microstation V8 2004)

    Hii All, I am new to microstation development. I am using C#.net and Visual Studio 2010. I want to do offset of a center line in both side and draw sections in a certain interval to the centerline. Would anyone help me to do this without using cadinputque…
  • [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;…
  • Extract information in Bentley Microstation design file

    Not sure if this is the right place to ask. How can i extract information in design file to a text file? The information involves all the elements in the file with its properties. I need to extract these information, without opening the file in Bentley…
  • 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…
  • [V8i C#] Bentley.Inroads.SDK HorizontalAlignments.Active

    in an out-of-box C# application the following lines of code crashes my application at SdkManager.Projects.Active.HorizontalAlignments.Active = horizontalAlignment; I am using Microstation V8i SS2 and InRoads V8i SS2, using the assembly Bentley.InRoads…
  • [V8i C#] Cancelling XFT LocateOperation on mouse Right-Click

    Hello! I am developing Addin that uses XFT LocateOperation like this: using XFT = Bentley.Interop.Xft; TextIdentifyFeatureLocateOperation oo = new TextIdentifyFeatureLocateOperation(); XFT.locateOp oLocateOp = new XFT.locateOp(); XFT.InputValue…
  • 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…
  • sample MDL application using c++ in vs2010

    Hi, can anyone help me to create a sample MDL application using c++ in vs2010 for microstation Regards, Uma mageswari
  • [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#] 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
  • [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…