Adding an Error Alert to a Bentley cfg File

Adding an Error Alert to a Bentley cfg File

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.

要查看或添加评论,请登录

Sean 'Bear' Forward的更多文章

  • An appl a Day

    An appl a Day

    I've had a few queries on where, why and how when it comes to cfg placement to fire off builds and if it can be used if…

  • Bentley Connect Changes to CADmanage Start-Up

    Bentley Connect Changes to CADmanage Start-Up

    So, while we've had changes to the configs between V8i and Connect, the key to have all of this work using the same app…

  • OBD Connect - std_appl.cfg Revisited

    OBD Connect - std_appl.cfg Revisited

    It's been a while since I've had time to sit down and put some updates together. I've been wanting to share some…

  • Work Smarter, Not Harder II

    Work Smarter, Not Harder II

    We're all wired differently. Me, I like to have things simplified when it comes to my tools.

  • Work Smarter, Not Harder

    Work Smarter, Not Harder

    It's the little things that can make the difference when it comes to different CAD packages and the versions changes…

  • Stinking Pile of Directories

    Stinking Pile of Directories

    So, what does STD_APP have to do with anything? Well, while worrying about how to sort out everything else, I forgot…

  • Stuck with It – WorkSpace and Workset

    Stuck with It – WorkSpace and Workset

    I tried. I really did try.

    2 条评论
  • User Files – Wherefor Art Thou

    User Files – Wherefor Art Thou

    One of the first issues raised during the beta process was the changes to the location of user files. During beta and…

  • My CADmanage Journey V8i to Connect

    My CADmanage Journey V8i to Connect

    As a CAD Admin there is no such thing as consistency. Client standards, users, project styles, discipline requirements…

  • Sometimes It's the Basics - Part 3

    Sometimes It's the Basics - Part 3

    I hope you're going well during these hard times. It's certainly left me penty of time to ponder the future of the…

    1 条评论

社区洞察

其他会员也浏览了