I'm trying to write a vb.net program to assist in updating our programs from V3.5MR2 to 2010MR3 and standardizing probe names. I have my program doing most of what I want except when executing the program most programs have operator inputs and I can't get past them without manual intervention. I can set the values in my vb.net program using .CommentCommand.Input but how do I either get it to not prompt for the input or "click ok" on the dialog? I'm using .ActivePartProgram.EXECUTE. Should I be using something else?
Maybe you can use marked sets and mark the inputs section of the program and run the rest?
Or, use a variable that you set at the beginning (through your script) and check for that variables value just prior to displaying the input boxes.
Pseudocode:
Run your script.
(script is doing stuff)
Script sets the variable "SKIPIT" to "1" in the beginning of the program.
Just before the input boxes are displayed, you have a snippet that checks for the value of "SKIPIT", if the value is anything but "1" then the input boxes should display (ie. you want them to display), if the value is "1", the input boxes should be skipped (look up "labels" and "goto") and the program should be executed.
Maybe you can use marked sets and mark the inputs section of the program and run the rest?
Or, use a variable that you set at the beginning (through your script) and check for that variables value just prior to displaying the input boxes.
Pseudocode:
Run your script.
(script is doing stuff)
Script sets the variable "SKIPIT" to "1" in the beginning of the program.
Just before the input boxes are displayed, you have a snippet that checks for the value of "SKIPIT", if the value is anything but "1" then the input boxes should display (ie. you want them to display), if the value is "1", the input boxes should be skipped (look up "labels" and "goto") and the program should be executed.