Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>If your using Microstation V8i, the following links helped me get started:</p> <ul> <li><a href="http://communities.bentley.com/products/microstation/w/microstation__wiki/8788" rel="nofollow noreferrer">C# .NET Template</a></li> <li><a href="http://theactoflearning.blogspot.ca/2014/06/microstation-add-in-creating-add-in.html" rel="nofollow noreferrer">MicroStation Add-in: creating the Add In</a> - Another page on this blog have a nice explanation of how to use preprocessor conditionals to be able to use the WinForms.Adapter form class easier.</li> </ul> <p><s>The target framework needs to be 3.5. 4.0 won't work and will lead to hair loss, trust me.</s> 4.0 can actually be done, but it involves modifying the ustation.exe.config file, <a href="http://communities.bentley.com/products/programming/microstation_programming/f/19569/p/64942/173751#173751" rel="nofollow noreferrer">as shown here</a>. I think I had another issue with the code from the first link and the second one helped, but I don't remember exactly what that was.</p> <p>To help testing the add-in, I added a post build command line event to copy the dll to my Microstation folder under the build events tab of the project properties.</p> <p><img src="https://i.stack.imgur.com/uJutb.png" alt="Build Events Tab"></p> <pre><code>xcopy "$(TargetPath)" "C:\Program Files (x86)\Bentley\MicroStation V8i (SELECTseries)\MicroStation\mdlapps" /Y </code></pre> <p>Then I set the start action to be "Start external program:" and set the path to the Microstation executable. </p> <p><img src="https://i.stack.imgur.com/lsWjX.png" alt="enter image description here"></p> <pre><code>C:\Program Files (x86)\Bentley\MicroStation V8i (SELECTseries)\MicroStation\ustation.exe </code></pre> <p>This allows me to debug normally with F5. It will compile the dll, copy it, and start Microstation. Still need to key in mdl load MyAddIn from the key-in dialog. I'm sure that could be automated also if I really wanted. Being able to add breakpoints is very very handy.</p> <p>Goodbye vba and hello source control. </p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload