We are in the process of deploying AECOsim company wide to over 200 users. We do have limited licenses and want to add one restriction to our configuration file. If BB_Discipline= MicroStation we want AECOsim to spit out an error Via command window and close when eneter is pressed. We dont want to allow users to use AECOsim as MicroStation because then they will be taking up an AECOsim license for MicroStation, of which we have hundreds of licenses. So far I have this
%if $(BB_Discipline)==MicroStation
Error
%endif
As you can see I dont know what syntax to add where it says error.
We will be removing the AECOsim as MicroStation shortcut from the install, but we do have computer savvy users that will be able to use the -wsBB_Discipline=MicroStation switch. Thanks in advance.
I wrote this blog some time ago, should be what you're looking for:
communities.bentley.com/.../adding-an-error-alert-to-a-bentley-cfg-file.aspx
Another option I use to control available applications is to use a hta file front end. I have a fair bit on this as well in my blogs.
Thanks,
Answer Verified By: JuanCar02
Here is an example used in a startup configuration:
%if exists (W:/Standards/$(USERNAME)/)
_USTN_USER = W:/Standards//$(USERNAME)/
%else
%error Your MicroStation user configuration is missing please contact CAD Support........
In this example, without the error, option a text window would open containing a verbose error message that is unintelligible to most users.
The error message not only tells the user what to do but clearly identifies the point at which the error occurred because there will only be one instance of this particular message in a configuration (it would be a bad idea to use the same message in different places...)
Regards
Marc
and in your specific case:
%error To use MicroStation please close this window and use a MicroStation shortcut. Do not use a MicroStation Building Designer shortcut!
should work.