Discussion Closed This discussion was created more than 6 months ago and has been closed. To start a new discussion with a link back to this one, click here.
Using model.save method to save as mph
Posted 7 giu 2019, 13:10 GMT-4 General, Simulation Apps Version 5.3a 1 Reply
Please login with a confirmed email address before reporting spam
I am trying to have my simulations be saved automatically under specified names as they are automatically computed in my app, but I am having trouble getting them to save under specified names.
Both of the following methods work fine:
- model.save("filename","m")
- model.save("filename","java")
But I am unable to save the file as a mph file:
- model.save("filename","mph") gives error "Unknown output type," as does
- model.save("filename.mph", "mph")
And
- model.save("filename") won't compile with error "Unhandled exception type IOExpection," as does
- model.save("filename.mph")
saveApplication(); doesn't allow me to specify names the name and saveApplicationAs(): requires user input.
How can I save the model files under specified names programatically?