Adding an Error Alert to a Bentley cfg File
Sean 'Bear' Forward
Senior Structural Designer\CAD Administrator @ Universal Site Solutions
One issue we have with the build we have been looking at is how do we let the user know if they haven't set the hta correctly. The biggest issue I find is that users forget to select the client or project variable. An easy way to add an error in the cfg is to use:
%if !defined
An example of this would be to check if the project variable has not been set. If not set then trigger an error which will stop the application from loading and bring the error up in a dos box. In this case it would look like:
%if !defined (project)
% error Exiting, please set project and year in CAD Explorer
%endif
Neat. More soon.