unsquishing sketches

Use this forum to post Vensim related questions.
Post Reply
wasbridge
Junior Member
Posts: 4
Joined: Fri Sep 21, 2007 12:00 am

unsquishing sketches

Post 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?
bob@vensim.com
Senior Member
Posts: 1107
Joined: Wed Mar 12, 2003 2:46 pm

Post 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.
wasbridge
Junior Member
Posts: 4
Joined: Fri Sep 21, 2007 12:00 am

Post 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.
bob@vensim.com
Senior Member
Posts: 1107
Joined: Wed Mar 12, 2003 2:46 pm

Post 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.
bobbypowers
Junior Member
Posts: 3
Joined: Fri Jul 13, 2007 6:29 pm

Post 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)
Post Reply