How to set the Final Time through the DLL

Use this forum to post Vensim related questions.
Post Reply
Christian
Junior Member
Posts: 2
Joined: Thu Apr 12, 2007 2:26 pm

How to set the Final Time through the DLL

Post 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
Christian
Junior Member
Posts: 2
Joined: Thu Apr 12, 2007 2:26 pm

Post by Christian »

try -

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

Cant help with DLL though.
bob@vensim.com
Senior Member
Posts: 1107
Joined: Wed Mar 12, 2003 2:46 pm

Post 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.
Post Reply