Dear ALL,
please can anybody help me with the connection of Java and Vensim. The example I found under the samples of Vensim does not help me within my detailed problem. For example I want to view the CAUSES and USES TREE in an Java programm. The basic connection via dll is not the problem, but how can I use the Vensim features from JAVA?? The Vensim helpfile did not explain me how to do.
The following example might help to understand what I want to do.
**
vensim.tool_command( "WORKBENCH>CAUSES TREE",??,??)
**
I don't know how to get the CAUSES TREE visible?
I hope anyone can help me with this detailed problem. Anyway I am very glad to get any examples of connecting Java and Vensim bejond the one included in the Vensim examples.
All the Best
Ernst
JAVA Vensim connection
-
- Senior Member
- Posts: 1107
- Joined: Wed Mar 12, 2003 2:46 pm
I looked at this a little bit and while it is almost certainly possible to make this work it would be tricky and probably not stable across java versions. Before JDK 1.4 there was an undocumented function to get an HWND from a canvas. With 1.4 a new approach to this was introduced with in which it is possible to call a native draw routine for a canvas.
We will look at impementing a new class derived from Canvas that will allow display (but no mouse input) of sketches, graphs etc. In the meantime it is probably easiest to take snapshots and just display the images from them.
We will look at impementing a new class derived from Canvas that will allow display (but no mouse input) of sketches, graphs etc. In the meantime it is probably easiest to take snapshots and just display the images from them.