Quantcast
Channel: MicroStation Programming - Forum - Recent Threads
Viewing all articles
Browse latest Browse all 1677

[v8i - VB.net] New Applicationclass - Second instance?

$
0
0

Hi all,

When creating a new microstation applicationclass from within vb.net it always seems to connect to a running microstation instance (if there is one)

Imports Mstn = Bentley.Interop.MicroStationDGN

...

Dim mApp As Mstn.Application = New Mstn.ApplicationClass

mApp.OpenDesignFile( ... and so on

The code runs fine when there is no current microstation running, however if there is it uses that instance to perform actions to the dgn. I would prefer if it created a new instance, open the dgn there, do actions ans close all in the background so the user can keep using his original microstation (visible) instance.

Is there a way to do this?

Appreciated.
RV.


Viewing all articles
Browse latest Browse all 1677

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>