Close/Save functions in command scripts

Use this forum to post Vensim related questions.
Post Reply
drw
Member
Posts: 40
Joined: Wed Mar 25, 2009 1:10 pm

Close/Save functions in command scripts

Post by drw »

Using command scripts are there commands available to 1) save a current model and 2) to close an open model (without closing Vensim). If you open another model it effectively does both at once (i.e. save, close existing file and then opens new one) as long as the close active model op open/new is checked, but was hoping there might be a better solution.

Thanks
Dave

(Using Vensim 5.11A DSS)
Last edited by drw on Tue Feb 07, 2012 5:37 pm, edited 1 time in total.
Administrator
Super Administrator
Posts: 4590
Joined: Wed Mar 05, 2003 3:10 am

Re: Close/Save functions in command scripts

Post by Administrator »

There is no way I know of to close a model.

What are you trying to do?
Advice to posters seeking help (it really helps us to help you)
http://www.ventanasystems.co.uk/forum/v ... f=2&t=4391

Units are important!
http://www.bbc.co.uk/news/magazine-27509559
drw
Member
Posts: 40
Joined: Wed Mar 25, 2009 1:10 pm

Re: Close/Save functions in command scripts

Post by drw »

I have a number of automated routines using Excel as a front end to a large number of regional Vensim models. When I run scripts to change things like aliases it would be great to be able to tell the model to save and close before moving on to the next one without just relying on the fact that when a new model file gets opened it will get saved and then closed. Also it would be nice to close the file open without closing Vensim after finishing previous DDE operations.

Thanks
Dave
Administrator
Super Administrator
Posts: 4590
Joined: Wed Mar 05, 2003 3:10 am

Re: Close/Save functions in command scripts

Post by Administrator »

Unfortunately I have no work around for you on this one.

Tony.
Advice to posters seeking help (it really helps us to help you)
http://www.ventanasystems.co.uk/forum/v ... f=2&t=4391

Units are important!
http://www.bbc.co.uk/news/magazine-27509559
Post Reply