hexagon logo

How to disable warning messages when running a cmd script

I'm running a model merge cmd script and during the execution I receive a Warning pop-up explaining that the two ground parts do not have the same material types and asks if I want to continue. How do I disable this dialog to continue processing without manually pressing continue.
Thanks
Parents
  • I think one way to get around this is to run View in batch mode. Any pop-ups like this shouldn't stop things in batch mode. So usually you run View in 'interactive' mode like so:
    /some/path/adams/2017/common/mdi.bat aview ru-s i
    but if you use 'b' for batch then you can give it a cmd file to start working on:
    /some/path/adams/2017/common/mdi.bat aview ru-s b file_to_load_model_do_stuff.cmd
     
    It just steps through the commands in that file and then quits when it hits the end. Since you can't see it you need to look at the aview.log file that's left behind to figure out what did/didn't work.
     
    I wonder if that's an option for your process?
     
    HTH,
    Kent
     
Reply
  • I think one way to get around this is to run View in batch mode. Any pop-ups like this shouldn't stop things in batch mode. So usually you run View in 'interactive' mode like so:
    /some/path/adams/2017/common/mdi.bat aview ru-s i
    but if you use 'b' for batch then you can give it a cmd file to start working on:
    /some/path/adams/2017/common/mdi.bat aview ru-s b file_to_load_model_do_stuff.cmd
     
    It just steps through the commands in that file and then quits when it hits the end. Since you can't see it you need to look at the aview.log file that's left behind to figure out what did/didn't work.
     
    I wonder if that's an option for your process?
     
    HTH,
    Kent
     
Children
No Data