This script will create graphs with Sparameter measurements for the existing EM Structures, schematics or data files. The script currently only works for documents with 1 or 2 ports. If the document has more than 2 ports, the script will do nothing.

To use the script, have the document open and the active window and then run the code listed above. Below is a picture of the new graphs added to this project after "Schematic_1" was opened and the active window.