Please enable JavaScript to view this site.

Vensim Help

C/C++int VEFCC vensim_tool_command(char *command,HWND pwindow,int aswiptool) ; 

int VEFCC VensimCToolCommand(int context,const char *command,HWND pwindow,int aswiptool) ;

Javapublic static native int tool_command( String command, int windowHandle, int aswiptool );//generally references to windows just won't work

public static native int CToolCommand(int context, String command, int windowHandle, int aswiptool );//generally references to windows just won't work

VBPrivate Declare Function vensim_tool_command Lib "vendll32.dll" (ByVal Vcommand$, ByVal Vwindow As Long, ByVal iswip As Integer) As Long
Pascalfunction vensim_tool_command(command_string: PChar;outwin : HWND;  wipflag: Integer): Integer ; stdcall ;  external 'vendll32.dll' ;

Perform a command that will cause output to be created, or the printing or exporting of the contents of a currently displayed item.

Arguments

command        the command to pass through Vensim.  See supported commands.  

pwindow        the handle to the window that the tool output should appear in, or the material to be printed does appear in.  Output will be created in a child to this window.  Note that in Visual Basic this value is passed as an integer.

aswiptool        1 to indicate that the tool being created is a work in progress graph that should be kept open to display simulation results.  Use 0 otherwise.

Returns

1 to indicate success, 0 to indicate failure.

Notes

This function is used for WORKBENCH, CUSTOM, ERROR, EXPORT and PRINT command classes.  For all other command classes vensim_command has the same effect.  For ERROR and PRINT you do not need to specify a command, but you must include the > as in: vensim_tool_command("PRINT>",mywindow,0).

If you want to remove output previously created, call vensim_tool_command with a null or empty command.  If you are manually loading and unloading vendll32.dll, be sure to do this before unloading the DLL.

This function is the same as vensim_command in the minimal DLL.

Generally this function will not be useful with Java.

See Also

vensim_command