Customer needs help dismissing a message box that comes up using SimTalk.
Running a distributed simulation via code that calls the Start method in the Experiment Manager. Every time the distributed Simulation starts, a MessageBox is prompted. Needs to use code to dismiss the Messagebox. Unable to access the original code that prompts the message due to the encryption of the Start Method in the Experiment Manager.
Is there way to interface with a message box in code? How to close or select "Yes", "No", "Cancel" ? Or is there a way to access the encrypted method?
Solution
We recommend using the following statements to start the simulation:
ExperimentManager.askForSaveModel := true;
ExperimentManager.showRuntimeAtEnd := false;
ExperimentManager.saveHTMLatEnd := false;
ExperimentManager.MailAtEnd := false;
ExperimentManager.showHTMLatEnd := false;
ExperimentManager.resetWizard;
ExperimentManager.Start;
The first switches off the message box asked for by the user.
The other statements switch off other settings which might cause additional message boxes.
Notes and References
Hardware/Software Configuration
Platform: INTL64
OS: window
OS Version: 764SP1
Product: TECNOMATIX
Application: PLANTSIMULATION
Version: V12
Function: ALL
Ref: 001-7614629