Page 1 of 1

unsquishing sketches

Posted: Mon Oct 08, 2007 2:53 pm
by wasbridge
Hi I have what I believe to be the latest version of vensim and the dll, and I am displaying the vensim sketches in my own program. I am having a problem because vensim displays the sketches with the variable names all squished over each other, the vertical text spacing is not adequate. Is there any way to make the variable names in the sketches not squish on top of itself?

Posted: Tue Oct 09, 2007 11:25 am
by bob@vensim.com
Try changing the font for all variables (View>Font & Colors) then changing it back and see if that fixes the problem. Vensim tries to wrap variable names with reasonable vertical spacing - of course for any one variable you can simply resize the bounding box.

Posted: Wed Oct 10, 2007 1:42 am
by wasbridge
I think you misunderstood me, I am displaying vensim sketches in my own program. I am using the show_sketch function from the encrypted DLL and the variable names are squished. Through the vensim DLL I cannot find a way to fix the vertial spacing on the sketches.

Posted: Wed Oct 10, 2007 12:58 pm
by bob@vensim.com
the spacing in the sketch as displayed by the DLL should be exactly what it is when the model is opened in Vensim. I can't think of anything that would cause a difference.

If I understand you the model looks fine when opened in Vensim, but displays squished vertically when opened in your application via the DLL. If you can post more details on the development environment you are using and show a screenshot from the model and the application I might be able to make a guess as to what is happening.

Posted: Tue Oct 30, 2007 5:11 am
by bobbypowers
the problem Billy, I do believe, is that the vertical spacing in the model is correct when using 'capitalize by type', but off (squished) when not. having the dll read a vensim.ini file before the model is opened should fix the problem, I would think.

yours
Bobby

(I'll tell you this in person, but thought I should post a reply since you did start the topic here)