Using a Python Script to Configure an SIwave Solution Setup
Complete the steps in either of the following sections to generate an Ansys ECAD database file (i.e., a *.def file) via Python script. Then import the newly created custom settings into an SIwave solution setup.
Running a Python Script
-
From Tools, select Run Script to open an explorer window.
- Navigate to the chosen directory and select the IronPython Script File (e.g., EDB_script_example.py).

- Click Open. The script generates a new Ansys ECAD database file at the location specified in the script (e.g., temporaryDirectory = "C:\\testDir").
-
From File, select Import > EDB to open an explorer window.
-
Navigate to the directory specified in the script file. Then select the Ansys ECAD database file (i.e., edb.def) and click Open.
-
From the Project Manager window, expand the Project Tree > [active design folder] > Analysis and double-click the SIwave setup (e.g., siwave) to open the SIwave Solution Setup window.
-
Navigate to the S-Parameters tab to view the newly imported custom model settings.
Copying and Pasting Script Commands
-
From Tools, select Open Command Window to open the Iron Python Command Window.
-
Copy and paste (e.g., Ctrl+C, Ctrl+V) the script text at the command line. Then press Enter.
-
The script commands generate a new Ansys ECAD database file at the location specified in the script (e.g., temporaryDirectory = "C:\\testDir").
-
From File, select Import > EDB to open an explorer window.
-
Navigate to the directory specified in the script text. Then select the Ansys ECAD database file (i.e., edb.def) and click Open.
-
From the Project Manager window, expand the Project Tree > [active design folder] > Analysis and double-click siwave to open the SIwave Solution Setup window.
-
Navigate to the S-Parameters tab to view the newly imported custom model settings.