displaying vgd file graphs

Use this forum to post Vensim related questions.
Post Reply
paulnewton
Junior Member
Posts: 13
Joined: Tue Sep 11, 2007 4:23 am

displaying vgd file graphs

Post by paulnewton »

Hi all,

I'm new to this forum so please bear with me if I botch something up. I'm also new to building bar graphs and figured out from the Help that I needed to create a vgd file, which I did, one file containing six bar graphs, each bar graph of the form:

:BAR-GRAPH EngrBar2020
:TITLE Engineers 2020
:Y-MIN 0
:Y-MAX 8000
:BAR-TIME 2020
:VAR Engineers 20 to 25|2025,Engineers 25 to 30|2530,Engineers 30 to 35|3035,Engineers 35 to 40|3540,Engineers 40 to 45|4045,Engineers 45 to 50|4550,Engineers 50 to 55|5055,Engineers 55 to 60|5560,Engineers 60 to 65|6065,Engineers 65 to 70|6570

In order to place the bar graphs on a View using the Input Output Object, I used the "Into Model" button on the Graphs tab of the Control Panel. But then, of course, I lose all the custom graphs I've created (per the Help in the Reference Manual, Ch 12, Section on Graphs, Custom Graphset section, "Into Model" paragraph), which is very frustrating if one is experimenting with assigning the time one wants the bar graphs to represent. Is there any way to place vgd file contents on a View without using "Into Model?"

Thanks,

Paul Newton
bob@vensim.com
Senior Member
Posts: 1107
Joined: Wed Mar 12, 2003 2:46 pm

Post by bob@vensim.com »

Once you have loaded the .vgd graphs (using either File>Load Custom from the text editor or the Open button on the control panel they can be displayed in any view.

If you want to have both the new and the old graphs use the Save As.. button from the control panel, then edit the resulting .vgd file and add bar graphs to that. Then all of your graphs will be in the file you are editing. After you are satisfied you can use the Into Model button or, if you are publishing, simply stick with the vgd file.
Post Reply