Can I change model settings in a Venapp?

Use this forum to post Vensim related questions.
Post Reply
merwin
Junior Member
Posts: 7
Joined: Fri Oct 15, 2010 7:59 pm

Can I change model settings in a Venapp?

Post by merwin »

Hi,

I am developing a Venapp where I would like the user to be able to alter the "Base date," a model setting. The user will be manipulating input data in an Excel spreadsheet, and I want the user to also be able to somehow indicate what year to start simulations in. If altering model settings in a Venapp is not possible, perhaps there is another work-around solution? Thank you for your help!

V/r,
Michael
bob@vensim.com
Senior Member
Posts: 1107
Joined: Wed Mar 12, 2003 2:46 pm

Post by bob@vensim.com »

I can't think of a way to do this now, but it is a good idea. We will look into adding the capability.
tomfid
Administrator
Posts: 3999
Joined: Wed May 24, 2006 4:54 am

Post by tomfid »

Is it not possible to link the INITIAL TIME setting to the spreadsheet with a GET XLS CONSTANTS call? Maybe I'm missing something, but this sounds possible.
merwin
Junior Member
Posts: 7
Joined: Fri Oct 15, 2010 7:59 pm

Post by merwin »

Thank you. I wanted to change the base date which is associated with time = 0. Perhaps I can get close to the desired result by restructuring some things and manipulating the INITIAL TIME.

V/r,
Michael
tomfid
Administrator
Posts: 3999
Joined: Wed May 24, 2006 4:54 am

Post by tomfid »

Ahh ... I think I understand now. You're talking about changing the "Base Date" setting under Model>Settings>Time Bounds, for display on graph axes, right?

I've never tried it, but it does seem that since Base Date is referenced to Time=0, you should be able to manipulate it by changing the INITIAL TIME of the model. That could have some unintended consequences if you're importing time series data from Excel, but might be OK otherwise.

Tom
Post Reply