Please enable JavaScript to view this site.

Vensim Help

 

C/C++int VEFCC vensim_set_state(void *buf, int maxbuflen) ;

int VEFCC VensimCSetState(int context, void *buf, int maxbuflen) ;

 

The vensim_set_state function allows you to resume a simulation state retrieved with vensim_get_state. This provides the same results as resuming from a run but is faster to execute, especially in the multicontext DLL

Arguments

bufA buffer from which the state can be read.
maxbuflenThe buffer size (returned from vensim_get_state).

 

Returns

0 for failure

A negative error message (see vendllerr.h)

1 for success.

 

See Also

vensim_get_state