Cancel
Showing results for 
Search instead for 
Did you mean: 

Open model file and the application closes immediatly by the endSim method

Experimenter
Experimenter

Hallo,

I have a problem, but cannot find any solution for this on the internet. I created a simulation modell and add an 'endSim' method which saves the file and exit the application. I tested the method and it is working, but when I want to open my file the endSim method starts immediatly and exits the application and I'm not able to do anything.

Is there a way to open Plant Simulation and the model file without executing any method, or is there a way to stop this before closing the application?

 

I hope you can help me without saying I have to start an older version of my model.

 

Thanks

Rik

 

PS: I am working with Plant Simulation 11 TR 3.

3 REPLIES

Re: Open model file and the application closes immediatly by the endSim method

Siemens Phenom Siemens Phenom
Siemens Phenom

Hi RikB,

 

just press <Shift>+<Ctrl>+<Alt> short before the model is loaded.

 

This should open the debugger where you can stop the exection of the method.

 

Regards,

Ralf

Regards,

Ralf
------------------------------------------------------------------------------------------------------
Did you like the answer? Then click the Thumbs Up button.
Did the answer solve your problem? Then accept the answer as solution.

Re: Open model file and the application closes immediatly by the endSim method

Siemens Phenom Siemens Phenom
Siemens Phenom

The function saveModel accepts up to 3 parameters. If you set parameter 2 to true, the method execution will be stopped after loading the model:

saveModel("C:\TEMP\a.spp", true);

_________________________________________________________________
Did you like the answer? Then click the Thumbs Up button.
Did the answer solve your problem? Then accept the answer as solution.

Re: Open model file and the application closes immediatly by the endSim method

Experimenter
Experimenter
Hey Ralf,

that worked. Thanks a lot.
I could have figured that out myself.