Please enable JavaScript to view this site.

Vensim Help

C/C++int VEFCC vensim_show_sketch(int sketchnum,int wantscroll,int zoompercent,HWND pwindow) ; 

int VEFCC VensimCShowSketch(int context,int sketchnum,int wantscroll,int zoompercent,HWND pwindow) ;

Javapublic static native int show_sketch( int sketchNum, int wantScroll, int zoomPercent, int windowHandle );//generally references to windows just won't work

public static native int CShowSketch(int context, int sketchNum, int wantScroll, int zoomPercent, int windowHandle );//generally references to windows just won't work

VBPrivate Declare Function vensim_show_sketch Lib "vendll32.dll" (ByVal viewnum As Long, ByVal wantscroll As Long, ByVal zoompercent As Long, ByVal Vwindow As Integer) As Long
Pascalfunction vensim_show_sketch(sketchnum: Integer;wantscroll: Integer; zoompercent: Integer;pwindow : HWND) : Integer ;  stdcall ; external 'vendll32.dll' ;

Use this command to display a model diagram.

Arguments

sketchnum        the number of the view to be shown (1 is the first view, 2 the second and so on).

wantscroll        use 0 to indicate that no scrollbars should appear and 1 to indicate that scrollbars should appear.  If there are no scroll bars and the entire view is not visible there will be no way to see it all.

zoompercent        specify the zoom percent (between 20 and 500) that you want the sketch to appear at.  A value of 0 will cause the zoom percent stored with the displayed view to be used (from the last use in regular Vensim). A value of 5 will cause the view cntent to be fit to the available size.

pwindow        the handle to the window that the sketch should appear in.  The sketch will be created in a child to this window.  Note that in Visual Basic this value is passed as an integer.

Returns

1 to indicate successful complete, 0 otherwise.

Notes

If there is another view or other tool output in the window, Vensim will automatically remove this and clear the associated resources.

This function does nothing in the minimal DLL.

In general this functionality will not be useful with Java.

See Also

vensim_tool_command