Printing Scripts

In some cases, in order to debug or modify your script, or explain it to someone else, you may want to print it out. You can do so by pressing the Print button on the Script dialog or by creating a text file of the Script contents using the key combination Ctrl-Shft-Alt-S.  

When you do so, however, the printed text will not simply consist of what you would see if you were to look at the Script dialog.  This is because for Variable Definition statements, there is information that is not explicitly shown in the script – the type, order and units of the variable. You must open the dialog for that statement to see this information.

Hence, when you print the script, GoldSim adds this information to the printed text.  For example, consider this very simple script:

If you were to print this script, the text would look like this:

Note that the text also shows the types (VALUE in this case) and units (m) for the variables, as well as descriptions.  Hence, the printed script can be understood without referring back to the GoldSim model itself.

Related Topics…