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

    Ivan Petrov
    Ivan Petrov
    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…
    • 29 days ago
    • MicroStation Programming
    • MicroStation Programming Forum
  • How to modify Connect Login dialog in ProjectWise SDK?

    Sergey Bereziouk
    Sergey Bereziouk
    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…
    • 7 months ago
    • ProjectWise Programming
    • ProjectWise Programming Forum
  • Create Rendition Dialog

    David Casilllas
    David Casilllas
    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
    • over 1 year ago
    • ProjectWise Programming
    • ProjectWise Programming Forum
  • Dgn to Pdf using Microstation SDK in a C# .Net Project

    Shane Hickey
    Shane Hickey
    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…
    • over 1 year ago
    • MicroStation Programming
    • MicroStation Programming Forum
  • How to get selected element id and display it in WPF form in Bentley.MstnPlatformNET.AddIn

    Mykhaylo Beley
    Mykhaylo Beley
    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…
    • over 1 year ago
    • MicroStation Programming
    • MicroStation Programming Forum
  • [CONNECT UPDATE13 .NET] UnloadAddIn

    Vitor Almeida
    Vitor Almeida
    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…
    • over 2 years ago
    • MicroStation Programming
    • MicroStation Programming Forum
  • CONNECT API - Is there a C# equivalent of the mdl measure.ma to compute minimum distance between Solid / Surface elements?

    Edward Ashbolt
    Edward Ashbolt
    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…
    • over 3 years ago
    • MicroStation Programming
    • MicroStation Programming Forum
  • Sample in C# for creating Saved Searches

    Dan Williams
    Dan Williams
    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…
    • over 3 years ago
    • ProjectWise Programming
    • ProjectWise Programming Forum
  • [ORD] Create plan named boundaries for selected alignments

    Cesare Caoduro
    Cesare Caoduro
    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
    • over 3 years ago
    • Civil Programming
    • Civil Programming Forum
  • Is there a list of DLLs containing explanations and the default locations for Microstation and Openroads?

    Şükrü Baykan
    Şükrü Baykan
    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…
    • over 4 years ago
    • Civil Programming
    • Civil Programming Forum
  • How to scan forparametric cells?

    Markus Hannweber
    Markus Hannweber
    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…
    • over 5 years ago
    • MicroStation Programming
    • MicroStation Programming Forum
  • RE: Creating a tool to rename files with versions

    steve bruton
    steve bruton
    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…
    • over 7 years ago
    • ProjectWise Programming
    • ProjectWise Programming Forum
  • calling PW API from c#

    Mark Gao
    Mark Gao
    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…
    • over 7 years ago
    • ProjectWise Programming
    • ProjectWise Programming Forum
  • Help with ProjectWise API access with C# aaApi_SelectDocuments

    Per Bodin - AEC AB
    Per Bodin - AEC AB
    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…
    • Answered
    • over 7 years ago
    • ProjectWise Programming
    • ProjectWise Programming Forum
  • aaAPI_CreateDocument Version String argument format?

    Hongseok Cha
    Hongseok Cha
    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…
    • over 8 years ago
    • ProjectWise Programming
    • ProjectWise Programming Forum
  • COM error from c# app outside VS?

    TMA
    TMA
    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…
    • over 8 years ago
    • MicroStation Programming
    • MicroStation Programming Forum
  • Running Hammer with WaterObjects.NET

    shenh
    shenh
    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…
    • Answered
    • over 8 years ago
    • OpenFlows | Water Infrastructure
    • OpenFlows | Water Infrastructure Forum
  • Setting document properties through API

    Leif Frederiksen
    Leif Frederiksen
    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…
    • over 9 years ago
    • ProjectWise Programming
    • ProjectWise Programming Forum
  • RE: Dot net application not working in multiple microstation DGN

    Manoj_Pal
    Manoj_Pal
    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…
    • Read.rar
    • over 9 years ago
    • MicroStation Programming
    • MicroStation Programming Forum
  • [v8i SS2 (08.11.07.443) C#] System.Runtime.InteropServices.COMException...

    TMA
    TMA
    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…
    • over 9 years ago
    • MicroStation Programming
    • MicroStation Programming Forum
  • RE: Create Blocks along center line and count points opened in micro station using Terra scan

    Manoj_Pal
    Manoj_Pal
    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
    • Extract.rar
    • over 9 years ago
    • MicroStation Programming
    • MicroStation Programming Forum
  • Using ProjectWise Web Services to index a file

    jkinter
    jkinter
    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…
    • over 10 years ago
    • ProjectWise Programming
    • ProjectWise Programming Forum