Exporting a dataset using a command script

Use this forum to post Vensim related questions.
Post Reply
pz
Member
Posts: 27
Joined: Thu May 06, 2004 5:33 pm

Exporting a dataset using a command script

Post by pz »

Hi,
how can I write a command script to launch after running a simulation? The script should perform:
- select the correct "vdf" file;
- choose "excel" as export format;
- select the "save list" I want;
- set the "time interval" to "12" or whatever else.
I think that the script should be then associated to the "post" processing in the simulation setup.
Thanks, Paolo.
Administrator
Super Administrator
Posts: 4838
Joined: Wed Mar 05, 2003 3:10 am

Post by Administrator »

You need to create a text file, then use the following command.

MENU>VDF2XLS|!|!|savelist.lst|

This will select the dataset from the last run, and use savelist.lst to select which variables to write to the Excel file.

The full syntax for the command is

MENU>VDF2XLS|vdffile|tabfile|savelist|+[*!number

And detailed descriptions of all the options are here.
http://www.vensim.com/documentation/html/25190.htm

All the best,

Tony.
pz
Member
Posts: 27
Joined: Thu May 06, 2004 5:33 pm

Post by pz »

Thanks so much!
Paolo.
Post Reply