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?
-S%startupFile%
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.MainEnd Sub
Sub OnProjectUnload()' Call SetupHooksEnd Sub Sub SetupHooks() Set oOpenClose = New clsOpenCloseEnd 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
Roald Tvedt said: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.
Roald Tvedt said: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.MainEnd Sub Sub OnProjectUnload()' Call SetupHooksEnd Sub Sub SetupHooks() Set oOpenClose = New clsOpenCloseEnd Sub
Yes I'm very much aware of that, I use it myself every day.
Roald Tvedt said: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?
Roald Tvedt said: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).
Roald Tvedt said: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.
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
Roald Tvedt said: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.
Roald Tvedt said: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
Berry. Sorry for my terrible English, maybe TERMS is a better then premises word here?
Hi Roald,
No need need to ever apologise for not knowing the English language, your English is far superior than I my Norwegian would ever be.
Not sure about about Terms, perhaps Settings?
Ultimately, I think what we should all understand from the discussion is something like:
"I would like Bentley to implement a method which would allow CAD Managers to control the 'Command Line: Execute Startup Script' User Preference".