Browse By Tags

  • [Microstation CE Update 17] [C#] | Update buffer | Undo previous change

    I have the next code: public void Update(IDgnECInstance instance, string propertyName, string value) { instance.SetAsString(propertyName, value); instance.WriteChanges(); } How can I enable users to reverse actions performed in my custom form using…
  • [CONNECT UPDATE13 .NET] UnloadAddIn

    OS: Windows 10 Application: MicroStation Connect Edition update 13 - v10.13.01.01 Language of the Application: C# .NET Framework: 4.7.2 Goal: To unload the AddIn when MicroStation Connect closes a file. Workflows to support: Workflow 1…
  • Crash when selecting Documents folder. Looking for missing dll.

    I have a menu extension that adds a menu item to the ProjectWise context menu. When the user selects the Documents folder at the top of the hierarchy ProjectWise exits. Looking that the debug of the process it is failing with a FileIOMissing File exception…
  • 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…
  • 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…
  • 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…
  • RE: Creating a tool to rename files with versions

    I too am getting: Error changing document file. Version modification is not allowed. I need, from the API, to create a New VERSION of a File. Same name, just a new version and underlying file. I've calculated the NEXT version number. 'aaApi_NewDocumentVersion…
  • ProjectWise tool to rename file(s) using environment attributes

    Hello, I am wondering if I could get some help creating a tool to rename drawing file(s) (DGN or DWG) from their original file name to the following environment title block attributes or symbols: <Environment.SUBSTATION_NUMBER>_<Environment.DWG_N0>…
  • Help with ProjectWise API access with C# aaApi_SelectDocuments

    Hi, I’m trying to utilize the aaApi_SelectDocuments to be able to find if my project already contain the file name of the file I’m about to add, but I’m having some problems implementing it. Not sure what I’m doing wrong or right :-). I’m guessing…
  • [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…
  • 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…
  • Api Vb.net SS2 - Can't run .dll provided with sdk sample

    Hi, i try to execute any .dll provided within sdk/PowerInRoads SS2. Unsuccessfully, i'm getting same error message: C:\Program Files (x86)\Bentley\PowerInRoads V8i\PowerInRoads\InRoadsGroup\sdk\samples\VBNetSamples\VBNetInProcess ... AddStationEquations2AlgPoints…
  • Running Hammer with WaterObjects.NET

    Hello There, I am using WaterObjects.NET to automate Hammer for sensitivity and calibration purpose. I can open the project, get/set pipe parameters, but get stuck in running Hammer engine. My questions are: 1 Is it possible to run epanet (as show in…
  • 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…
  • [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…
  • RE: Create Blocks along center line and count points opened in micro station using Terra scan

    Thanks Mr. Jon Please find the Extract.rar. This is a sample C++ project to copy element made in visual studio 2008. Please can you give any suggestion to make a .ma or .dll file so that i can call it from microstation Regards Manoj
  • LONG AAAPIHOOK ExecCmd( LPAACMDPARAM lpCommand ) Is not being called.

    Hello Bentley Community, This is my very first post and I believe it wont be the last, hope we can get along well and that I can help other members along the way. I've done a series of changes in 'docprop' sample project to learn and to customize it…