Is there a tutorial for Microstation Api for C # developers?

I am new to Microstation API. I am a C # developer. I need to get information from a Microstation application using a C # application. Is there a tutorial for the Microstation API for C # developers?

+4
source share
2 answers

If you used the Microstation V8i, the following links helped me get started:

The target structure should be 3.5. 4.0 will not work and will cause hair loss, trust me. 4.0 can indeed be done, but it involves modifying the ustation.exe.config file, as shown here . I think I had another problem with the code from the first link, and the second one helped, but I don’t remember exactly what it was.

To help test the add-in, I added a post build command line message to copy the dll to the Microstation folder on the events tab of the project properties assembly.

Build events tab

xcopy "$(TargetPath)" "C:\Program Files (x86)\Bentley\MicroStation V8i (SELECTseries)\MicroStation\mdlapps" /Y 

Then I set the launch action to "Run external program:" and set the path to the Microstation executable.

enter image description here

 C:\Program Files (x86)\Bentley\MicroStation V8i (SELECTseries)\MicroStation\ustation.exe 

This allows me to properly debug F5. It will compile the dll, copy it and launch Microstation. You also need to enter mdl load MyAddIn from the input dialog box. I am sure this can be automated if I really want to. The ability to add control points is very convenient.

Goodbye vba and source control hello.

+6
source

Source: https://habr.com/ru/post/1340581/


All Articles