Is there an env. variable available for starting MicroStation CE U16 with a startup txt file (containing keyins). I'm aware that there is a user preference in Update 16, but an env. variable is much more flexible.

EXAMPLE:

start "Aibel AS. Iso2Ustn for MicroStation Connect Edition" /D %Appl_Root% /HIGH %app% -S%StartupFile% -WK%CurrentWorkSpace% -WW%currentWorkSet% %StartupCadFile%

  • You're asking for a configuration variable equivalent to the -S%startupFile% command-line switch?

    VBA

    What some people do is to create a startup VBA macro.  That macro can do whatever you want, including sending the key-in to run an @script.

    If a VBA macro has a method called OnProjectLoad then it runs automatically when the VBA project is loaded.  You can specify which VBA projects should be loaded using configuration variable MS_VBAAUTOLOADPROJECTS.

    Post questions about VBA to the Programming Forum.

     
    Regards, Jon Summers
    LA Solutions

  • Exactejy

    Last ned Outlook for iOS

    Fra: Jon Summers <bounce-DE0601D9-CA2E-4005-A7B3-982ABAEE9AEB@communities.bentley.com>
    Sendt: Friday, March 4, 2022 11:02:28 AM
    Til: MicroStationForum@communities.bentley.com <MicroStationForum@communities.bentley.com>
    Emne: RE: [MicroStation Forum] Is there an env. variable available for starting MicroStation CE U16 with a startup txt file (containing keyins). I'm aware that there is a user preference in Update 16, but an env. variable is much more flexible.
     
    Update from Bentley Communities
    Jon Summers

    You're asking for a configuration variable equivalent to the -S%startupFile% command-line switch?

    View online

     

    You received this notification because you subscribed to the forum.  To unsubscribe from only this thread, go here.

    Flag this post as spam/abuse.

    This e-mail and the information it contains is confidential and intended for the right addressee only. It may contain legally privileged and confidential information. If you are not the person or organisation to whom it is addressed (or meant to be addressed to), you must not copy, distribute or take any action in reliance upon it. If you have received this email in error, please notify the sender immediately by telephone, fax or e-mail and delete it from your system. Aibel AS is not liable for any opinions expressed by the sender where this is a non-business e-mail.


    Sensitivity: Internal

  • Looking for a environment variable to be used instead of the user pref option in CE U16

  • Jon gave you a variable to use. It will call a macro that will run when Microstation is started. It is not a user preference. This is part of the workspace.

    Microstation CONNECT 10.17.00.209

    ORD CONNECT 2021 R1 10.10.1.3

    Microstation v8i SS 10 08.11.09.919

    Power InRoads v8i 08.11.09.615

    ORD CONNECT 2021 R1 10.10.1.3

    ProjectWise 10.0.3.453

  • In 10.16.02.34 a userpref has been introduced to be able to start MicroStation with switch -S%startupfile%. 

    If this userpref is unchecked, startupfile will not execute. 

    In my opinion this is a step in the wrong directon, specially in programming situations.