A command script can use most, but not all, of the commands available to Venapps. Each is written class>command|options, as described in Command Descriptions. The commands a script accepts are listed below by class. Each links to its own description.
Commands marked with an edition work only in that edition.
FILE
Work with files and convert model formats. See the FILE overview.
•COPY
•ENCRYPT (Vensim DSS)
•DECRYPT (Vensim DSS)
•VMF2XML (also VMFX2XML)
•VMF2XMILE (also VMFX2XMILE)
•PUBLISH_WEB (publishes for the browser)
•COMBINESUBMODELS (Vensim DSS and Professional)
LOG
Write to a log file. See the LOG overview.
•INFO_... (INFO_ALL, INFO_MODELNAME, INFO_RUNLIST and the rest)
MENU
Run simulations and convert data files. See the MENU overview.
•RUN
•RUN1
•RUN_MCMC (MCMC, using the MCMCPARM and MCMCPAYOFF files)
•RUNCOMPARE (writes a file, opens no window)
•RUN_SENS2ALL (uses the setup of the Sensitivity to all tool)
•TAB2VDF (SS2VDF is an older name for it)
•VDF2CSV (VDFX2CSV is the same command)
•VDF2DAT (VDFX2DAT is the same command)
•VDF2DLIST (VDFX2DLIST is the same command)
•VDF2TAB (VDFX2TAB is the same command)
•VDF2TIDY (VDFX2TIDY is the same command)
•VDF2WK1 (VDFX2WK1 is the same command)
•VDF2XLS (VDFX2XLS is the same command)
•VDF2XLSX (VDFX2XLSX is the same command)
•EXIT
SETTING
Change program settings for the session. See the SETTING overview.
•HOVERCOMMENT (also HOVERCOM)
SIMULATE
Set up the next simulation. See the SIMULATE overview.
•DATA
•OVERRIDE (SyntheSim overrides)
•RC_FILE_OUTPUT (also REALITY_CHECK_FILE_OUTPUT)
SKETCH
Act on the views of the open model. See the SKETCH overview.
•ZOOM
SPECIAL
Load models, runs and settings, and control the script. Other SPECIAL commands are rejected in a script. See the SPECIAL overview.
•READINI (also LOADINI)
•GETINFO (Vensim DSS; output needs -log)
•GETRUNINFO (Vensim DSS; output needs -log)
•GETVARATTRIB (Vensim DSS; output needs -log)
•GETVARNAMES (Vensim DSS; output needs -log)
•SAVEMODEL (Vensim DSS)
SYNTHESIM
Control SyntheSim. See the SYNTHESIM overview.
•AUTO
•GO
TIMEAXIS
Set the time axis for output. See the TIMEAXIS overview.
TIMER
Schedule commands. Not available in the Vensim DLL. See the TIMER overview.
•CREATE, EXECUTE, SHIFTTO, COMMAND, SET, KILL, DELETE, PERMANENT
Accepted, but interactive
These open a dialog or act on the Vensim window, so they need a person at the screen and are rarely useful in a script, and never with SPECIAL>NOINTERACTION|1:
Not allowed in a command script
A script that uses any command in these classes stops with an error:
•GAME
•TEST
The same applies to SPECIAL commands not listed above - ASKYESNO, MESSAGE, SETTITLE and the rest - which interact with a Venapp screen.
For which commands work in Venapps, DDE and the Vensim DLL, see the Command Use Summary.