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…
  • How to modify Connect Login dialog in ProjectWise SDK?

    issue: We are in the process of infrastructure migration to the cloud. Upgrade from PWv8i to CONNECT is part of it. To interface PW from the GIS desktop application, we use PW SDK. We found PW Login UI discrepancies between v8i & CONNECT: - CONNECT…
  • Create Rendition Dialog

    Does anyone know if it's possible to programmatically bring up the Create Rendition Dialog as shown below? Or do I have to create a custom dialog for an app I'm developing using the ProjectWise Rendition Service API. Thanks, Dave
  • Dgn to Pdf using Microstation SDK in a C# .Net Project

    I am creating a C# .Net app where I want users to be able to convert a .dgn file to .pdf. Could anyone point me towards some documentation, tutorials or code examples that could show me how to achieve this? Which .dll's are required as references? What…
  • How to get selected element id and display it in WPF form in Bentley.MstnPlatformNET.AddIn

    Hi I just started with MicroStation so forgive me my ignorance. ;-). I have C# Bentley.MstnPlatformNET.AddIn with WPF form that is displayed through "mdl load xxxx" I need to be able to click on drawing (.dgn) and read element id property that is selected…
  • [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…
  • CONNECT API - Is there a C# equivalent of the mdl measure.ma to compute minimum distance between Solid / Surface elements?

    As per title, I want to port this functionality to Generative Components which is written in C#. None of the libraries I could find seemed to perform this operation (aside from calculating distance between 2 points), any advice on how to achieve this…
  • Sample in C# for creating Saved Searches

    I created a sample console application in C# that uses the PWSearchWrapper.dll assembly that Dave Brumbaugh provides to show a way to create global saved searches (datasource or for a specific work area). You can get the source code here: https://github…
  • [ORD] Create plan named boundaries for selected alignments

    The documentation and the examples around the creation of named boundaries is not developed. Can anyone please advice on the path to take to programmatically create plan named boundaries for a selected alignment in the model? Thanks
  • Is there a list of DLLs containing explanations and the default locations for Microstation and Openroads?

    I am new in programming for Microstation/openroads. I am trying to run Managed Examples in the SDK. But I can't find Bentley.MstnPlatformNET . Is there a list of DLLs, explanation of their content and the default locations of them for Microstation and…
  • How to scan forparametric cells?

    Hi, To scan a drawing for all cells I use: ElementScanCriteria scanCriteria = new ElementScanCriteriaClass(); scanCriteria.ExcludeAllTypes(); scanCriteria.IncludeType(MsdElementType.CellHeader); but this don't find any parametric cells and I didn…
  • 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…
  • calling PW API from c#

    I'm experimenting to call PW API from c#, here is the snippet of my code, but it errors out 'Unable to find an entry point named 'aaApi_LoginDlg' in DLL 'C:\Program Files (x86)\Bentley\ProjectWise\bin\dmscli.dll' when I run it. can anybody help [ DllImport…
  • 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…
  • aaAPI_CreateDocument Version String argument format?

    I just created C++ wrapper library to be called from c#. This works fine but how can I create another version of same name document in lieu of overwriting existing one? In addition, is there any API reference source I can use to figure out this kind…
  • 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…
  • 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…
  • Setting document properties through API

    I have been using aaApi_GetDocumentStringProperty to obtain property values from document. That works pretty straight forward. Unfortunately I also want to assign new values to the document properties. I cannot seem to find something like "aaApi_SetDocumentStringProperty…
  • 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
  • Using ProjectWise Web Services to index a file

    I'm trying to use the PWWS interface to upload files into the repository. The documentation indicates that this can be done via a POST; however, it also says that the post must use a multi-part form content type. The .NET WebClient implementation doesn…