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 Electronics Desktop to customize an SIwave solution setup.

Running a Python Script
  1. From the Tools tab, select Run Script to open an explorer window.

    Tools > Run Script

  2. Navigate to an appropriate directory and select the IronPython Script File (e.g., EDB_script_upload.py).

    Run Script Explorer Window

  3. Click Open. The script generates a new Ansys ECAD database file at the location specified in the script (e.g., temporaryDirectory = "C:/testDir").
  4. Open a version of Ansys Electronics Desktop.

    Ansys Electronics Desktop (Example)

  5. From File, select ImportEDB to open an explorer window.

    File > Import > EDB

  6. Navigate to the directory specified in the script file. Then select the Ansys ECAD database file (i.e., edb.def) and click Open.

    Explorer Window

  7. The Ansys ECAD database file generates a project configured with the configured settings (e.g., ex01), including the SIwave setup (e.g., siwave) and custom S-Parameters.

    Electronics Desktop Project with HFSS 3D Layout Design

Copying and Pasting Script Commands
  1. From the Tools tab, select IronPython Command Shell to open the Iron Python Command Window.

    Tools > Run Script

  2. Copy and paste (e.g., Ctrl+C, Ctrl+V) the script text at the command line. Then press Enter.

    Enter Command Line Text

  3. The script commands generate a new Ansys ECAD database file at the location specified in the script (e.g., temporaryDirectory = "C:/testDir").

  1. Open a version of Ansys Electronics Desktop.

    Ansys Electronics Desktop (Example)

  2. From File, select ImportEDB to open an explorer window.

    File > Import > EDB

  3. Navigate to the directory specified in the script file. Then select the Ansys ECAD database file (i.e., edb.def) and click Open.

    Explorer Window

  4. The Ansys ECAD database file generates a project configured with the configured settings (e.g., ex01), including the SIwave setup (e.g., siwave) and custom S-Parameters.

    Electronics Desktop Project with HFSS 3D Layout Design

Related Topics:

SIwave Simulation Options