Script - Saving Symbol Values
The save symbol icon
![]() |
The Symbol save window has 4 modes of operation. You select the mode by clicking the appropriate radio button. When the window is closed you will asked to provide and name and location for your file (in 3 of the 4 options). This, like most files, may be a sequence of files if you so choose.
save all symbols & values: This will arrange all of the symbols listed in the "Symbol Defs" icon as a list such as "a=10" etc. and then save the list to a file. save just symbols at left: This option causes the icon to scan the list at the left, look up the values in the "Symbol Defs" data list, and then present the list much like the example at the left, and finaly saves the result to a file. |
![]() |
add symbol values from left to table below: This will range the output into a table and on subsequent iterations add a line to the table. This option save nothing to disk. But this option is designed to work with the following checkbox which should implemented in another icon. This option does not force a file name to be provided, since another icon can save the accumulated table. This option however is the only one that can (should you choose to leave the box checked) create a header, which is the row of letters at the top of the table. The icon will change when this option is chosen save table fetched from another icon: The previous option creates a table and saves it internally and will be visible when you open the window. If you wish the table to be saved to a file however, it is intended that a second instance of this icon be set with this fourth button selected. All that it does is trace back along the red data line to the icon implementing option 3, fetch the table of data and save it to the tile name you have provided. After the saving operation the table at the other end of the red line is cleared. |
![]() |
An Example: This is the simplest example that I can devise that produces and saves a table of values & uses option 3 and 4. The "Symbol Defs" icon holds the table of values the "Rescale" alters several of the values and the upper "Save Symbol" icon adds a line of values to the table, on each pass, after at first, adding the header row. The count and branch icon sends execution along the green path after (in this case 6 iterations) to the lower icon which makes the save resets, and clears and resets the upper icon for further saves. It There were an even larger loop enclosing this you can cause the save operation to advance the save name number using the '#' trick. |