Page 1 of 1

How to set the Final Time through the DLL

Posted: Thu Apr 12, 2007 2:59 pm
by Christian
Hi

What I want to do is create a program in c# that uses vensim DLL to load a model and run.

The problem is I cant figure out how to tell the dll how long to run the simulation for. It only runs the time hard coded into the model.

As a seperate question, is it possible to query the DLL to retrieve the name of the input file (in this case an xls file).

Thanks

Posted: Thu Apr 12, 2007 3:19 pm
by Christian
try -

"SIMULATE>SETVAL|<var name>=<time>"

Cant help with DLL though.

Posted: Fri Apr 13, 2007 10:28 am
by bob@vensim.com
If you mean by the name of the input file an xls file from a GET XLS CONSTANTS/DATA the answer is no. you can use vensim_get_info for some of the input file names.