launch instance of Microstation with correct workspace/workset

i have a standalone app that will launch a instance of microstation and pass in the -WK parameter for the workspace name, the -WW parameter for the workset name and the -WA parameter for the startup app.

it works great..most of the time. here is what i have found out

i have my workspace over in the Custom config side (using the ConfigurationSetup.cfg file and the _USTN_CUSTOMCONFIGURATION variable)

I have found out that it will only work if the last used workspace/workset is over on the custom config side of things. 

so for example if i launch a bentley delivered workspace to go through some training and then i close out of microstation and then i run my stand alone up, when it launches the background instance it cant find the startup app because it couldnt find the workspace/workset. 

its like its only looking for workspaces within the last used configuration branch. see image below for what i mean when i say configuration branch.

So the question is how can i reliably launch my background instance to use the correct configuration?

Parents
  • I set up a lot of configurations for different clients. The _USTN_CUSTOMCONFIGURATION variable setting for these different configurations changes for each client. As a result I'm changing this value all of the time.

    The way I do this is to create a startup shortcut for each client configuration that uses the -wc switch to specify a starting configuration file. In that starting configuration file I define the correct _USTN_CUSTOMCONFIGURATION for the client. I also do a %lock of the variable so it doesn't get changed later on when the ConfigurationSetup.cfg file is loaded.

    When you use the -wc switch to use a starting configuration file, it does not read the mslocal.cfg file, so your starting configuration file has to include it or replace the definitions and other includes.

    Rod Wing
    Senior Systems Analyst

Reply
  • I set up a lot of configurations for different clients. The _USTN_CUSTOMCONFIGURATION variable setting for these different configurations changes for each client. As a result I'm changing this value all of the time.

    The way I do this is to create a startup shortcut for each client configuration that uses the -wc switch to specify a starting configuration file. In that starting configuration file I define the correct _USTN_CUSTOMCONFIGURATION for the client. I also do a %lock of the variable so it doesn't get changed later on when the ConfigurationSetup.cfg file is loaded.

    When you use the -wc switch to use a starting configuration file, it does not read the mslocal.cfg file, so your starting configuration file has to include it or replace the definitions and other includes.

    Rod Wing
    Senior Systems Analyst

Children
No Data