Aeocsim connect command line arguments

I'm in the process of implementing changes to our companys workspace to get Connect Edition running.

We have previously had a very simple method of running Aecosim V8i, the only thing we did was setting a Windows System Variable (_USTN_WORKSPACEROOT) to the network folder where the workspace was, and everything was running nicely.

This isn't working anymore,as _USTN_WORKSPACEROOT is not the same anymore.

First thing therefore was undefining this Windows System variable, and instead running V8i with command line switch "-wrM:\Microstation\Workspace\".

V8i still working the same way as before, which is a nice thing.

My question now is, can I do the same thing with Connect Edition?

The purpose would be the same, the program shouldn't look for the 2 configuration files ConfigurationSetup.cfg and WorkSpaceSetup.cfg on a local drive, but on the network.

  • Hi Andreas,

    On each workstation the ConfigurationSetup.cfg file redirects to the networked Custom Configuration (and that is all it does!). You should not need to use switches

    The content of this file is preferably set during installation in this dialog:

    So enter "M:\Microstation\Workspace\" in the Custom Configuration field.

    The active contents of your ConfigurationSetup.cfg file should then be:

    [General]
    _USTN_CUSTOM_CONFIGURATION = M:/Microstation/Workspace/

    [SetConfiguration]
    %if !defined (_USTN_USER_CONFIGURATION)
    %if defined (_USTN_CUSTOM_CONFIGURATION) && ($(_USTN_CUSTOM_CONFIGURATION) != "") && exists ($(_USTN_CUSTOM_CONFIGURATION))
    _USTN_CONFIGURATION = C:/ProgramData/Bentley/AECOsim CONNECT Edition/Configuration/
    %endif
    %endif

    Note that as you use AECOsim CE the file will be updated with the appropriate value for _USTN_CONFIGURATION based on the WorkSpace selected in the UI by the user.

    Please refer to the blogs and posts listed here for detailed guidance to Custom Configuration.

    Marc

    Answer Verified By: Andreas Zieritz 

  • That's a bit of a "hen or egg" problem, as I didn't have any networked custom configuration yet.

    But as far as I understand it should be possible to fix that by changing the configuration files.

    • I did change the local ConfigurationSetup.cfg
    • I removed the ConfigurationSetup.cfg from the networked "Configuration" folder

    The ConfigurationSetup.cfg looks like that:

    [General]
    _USTN_CUSTOM_CONFIGURATION = M:/Microstation/Workspace_Connect/Configuration/
    _USTN_CONFIGURATION : ${_USTN_CUSTOM_CONFIGURATION}

    [SetConfiguration]
    %if !defined (_USTN_USER_CONFIGURATION)
    %if defined (_USTN_CUSTOM_CONFIGURATION) && ($(_USTN_CUSTOM_CONFIGURATION) != "") && exists ($(_USTN_CUSTOM_CONFIGURATION))
    %endif
    %endif

    So far that looks good.

    I do have another problem with configuration in addition, but I'll open a new post.

  • Hi Andreas,

    ConfigurationSetup.cfg should not look like that! Which Update are you running?

    The content should be as my example. AECOsim (and MicroStation, etc.) write to the ConfigurationSetup.cfg to keep the file in sync with the WorkSpace selected by the user. If the structure is changed the file may not be parsed correctly and will not be rewritten correctly.

    That's a bit of a "hen or egg" problem, as I didn't have any networked custom configuration yet.

    You can install AECOsim and include the network location before the network location is ready, it will work with the locally installed dataset and example projects. Once the Custom Configuration is ready users will be able to select it.

    Until the Custom Configuration contains at least one WorkSpace CFG file (e.g.: \\hal\CONFIGURATIONS\CE\WorkSpaces\DemoSets.cfg) it will not appear for selection in the UI.

    To test things out you could create a Custom Configuration locally, e.g.:

    Note:

    The project data is in a separate folder structure from the configuration.

    The DGNWS files are also stored with the project data as they need to be user-writable.

    Once that is ready for testing on the network you can simply copy the contents of _SERVER to the network and change the path in ConfigurationSetup.cfg.

    Please read through the posts I mentioned before, I've tried to document all of the necessary steps.

    Marc

  • I am using Aecosim Update 3.

    I've checked again, and as far as I can see the first difference is that I have moved everything in a subfolder on the network (/configuration), so that would explain the difference in the _USTN_CUSTOM_CONFIGURATION variable.

    But to simplify things and to have the same setup you have described, I have changed that now, so my network files are in M:\Microstation\Workspace_Connect now.

    Further on I did uninstall my Aecosim installation, and made a new installation from scratch. However here I do run into a little problem, as I don't get the question if I would like to have a networked workspace. Run installation twice, but no change.

    Which gives me an installation WITHOUT any ConfigurationSetup.cfg.

    So I guess we need to do that manually anyway.

    If I do run your ConfigurationSetup.cfg unchanged (except for "Workspace-Connect" instead of "Workspace", I have those key variables (starting up with no workspace).

    • _USTN_CUSTOM_CONFIGURATION: System         = M:\Microstation\Workspace-Connect\  
    • _USTN_CONFIGURATION : System         = C:\ProgramData\Bentley\AECOsim CONNECT Edition\Configuration\  

    That's wrong, it should use network configuration instead.

  • Just some supplements.

    1. ConfigurationSetup.cfg seems to be dynamic. I haven't read about that before, but your last reply specificly says so.
      This is the first time I have experienced that from Bentley. Just wonder what happens if you open 2 files from different workspaces / worksets...

    2. WorkSpaceSetup.cfg apparently must be on the local drive, and not on the network drive.
      Just to make sure that I didn't screw the configuration, here are the active contents from my local WorkSpaceSetup.cfg

      MY_ORGANIZATION_LOCATION = M:/Microstation/Workspace_Connect/Organization/
      MY_WORKSPACES_LOCATION = M:/Microstation/Workspace_Connect/WorkSpaces/