Save Diagram to File and Read Diagram from File
Clicking the Save Diagram to file button at the bottom left of the DIagram window toolbar will save the Diagram window (an all associated child Diagram windows) to a .dgm file with a filename that you specify. All details in the Diagram are saved including input and output text, graphics, and buttons.
A previously-saved Diagram file can be read into the Diagram window by clicking the Read Diagram from file at the bottom right of the DIagram window toolbar. After specifiying the name of the .dgm file, the existing Diagram window is cleared and replaced with the information in the .dgm file.
The capability to save and read .dgm files is useful for copying a Diagram window composed in one EES program to a different program or for displaying a different Diagram window when a different tab in the Equations window is selected. Note that the variable names for Diagram inputs and outputs are saved with the .dgm file and retreived when the .dgm file is read. When the Diagram file is read into a diifferent EES program, the variable names for the inputs and outputs should be the same or they will need to be changed in the Diagram window.
A .dgm file can be a automatically read using the $Include directive.