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%

Parents
  • 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

  • You can autoload any mvba project by using the variable MS_VBAAUTOLOADPROJECTS.

    If you want an mvba to run at project load or unload, you need a modules like these:

    Sub OnProjectLoad()
    Call SetupHooks
    Call Settings.Main
    End Sub

    Sub OnProjectUnload()
    ' Call SetupHooks
    End Sub

    Sub SetupHooks()
    Set oOpenClose = New clsOpenClose
    End Sub

    Nevertheless, sometimes you want to do some general keyins without involving an mvba.

    Letting Users to decide to bypass this with a UserPref is a trap. A variable would be better,

  • Hi Roald

    premises

    I'm not sure what you mean by that term, as it doesn't make sense in the context of the sentence or discussion.

    You can autoload any mvba project by using the variable MS_VBAAUTOLOADPROJECTS.

    If you want an mvba to run at project load or unload, you need a modules like these:

    Sub OnProjectLoad()
    Call SetupHooks
    Call Settings.Main
    End Sub

    Sub OnProjectUnload()
    ' Call SetupHooks
    End Sub

    Sub SetupHooks()
    Set oOpenClose = New clsOpenClose
    End Sub

    Yes I'm very much aware of that, I use it myself every day.

    Nevertheless, sometimes you want to do some general keyins without involving an mvba.

    I don't see the issue with it being via VBA tbh nor can I see how startup file is any better i.e. what functionality does it do better?

    Letting Users to decide to bypass this with a UserPref is a trap. A variable would be better,

    So you would like to have an environment variable to control the ability to lock down that user preference setting?

    I don't use CONNECT but have you considered looking in the CONNECT version capability.list file to see if there is a capability which can lock down that user preference setting? If there is, you can make your own environment variable to control it being enabled or disabled though I would probably still choose controlling it completely via a CFG file(s).

    In my opinion, this is rather a trap than an improvement.

    I would very much like to know the framework for this terrible user pref.

    Unfortunately Bentley have changed many things what with appears no regard to the thoughts of its users. You are merely a passenger along for the ride.

  • OK. Could you explain what you mean by  "doesn't make sense in the context of the sentence or discussion."

  • I want a variable that overrun the userpref ignoring to read Startupfile...... switch --SStartUpFile. New userpref in U16

  • OK. Could you explain what you mean by  "doesn't make sense in the context of the sentence or discussion."

    The word 'premises' in your previously reply didn't make sense so I couldn't be sure of what you were trying to say. The English definition of the word is below:

    I realise English isn't your native language and you perhaps meant another word instead, but I don't know which one.

    I want a variable that overrun the userpref ignoring to read Startupfile...... switch --SStartUpFile. New userpref in U16

    I think that your request is to control that setting in User Preference is valid, and it could be done in either by a MicroStation Configuration Variable (not Environment Variable as previously discussed) or via a Capability. I suspect you will have to raise that as an idea with Bentley.

    Personally, I find no value in the addition. I presume you want to prevent users automatically running key-in's via a startupfile, however given that you cannot prevent a user running the same key-ins via a VBA Macro, it seems of little merit to control that user preference.

    Answer Verified By: Roald Tvedt 

Reply
  • OK. Could you explain what you mean by  "doesn't make sense in the context of the sentence or discussion."

    The word 'premises' in your previously reply didn't make sense so I couldn't be sure of what you were trying to say. The English definition of the word is below:

    I realise English isn't your native language and you perhaps meant another word instead, but I don't know which one.

    I want a variable that overrun the userpref ignoring to read Startupfile...... switch --SStartUpFile. New userpref in U16

    I think that your request is to control that setting in User Preference is valid, and it could be done in either by a MicroStation Configuration Variable (not Environment Variable as previously discussed) or via a Capability. I suspect you will have to raise that as an idea with Bentley.

    Personally, I find no value in the addition. I presume you want to prevent users automatically running key-in's via a startupfile, however given that you cannot prevent a user running the same key-ins via a VBA Macro, it seems of little merit to control that user preference.

    Answer Verified By: Roald Tvedt 

Children