Adding Programmatic EDB Cells to HFSS 3D Layout

  1. From the Project Manager window, expand Definitions and right-click Components.
  2. Choose Add Scripted Component.
  3. From the explorer window, click one or more Python script files (.py) to generate a set of component, footprint, and symbol definitions.
Note:

Each Python script file must possess two elements:

  • A component, “MyNewComponent”, that is derived from IScriptedComponent. The IScriptedComponent file is located in the executables directory in PythonFiles\HFSS3DLayoutDesign\ScriptedComponent\IScriptedComponent.py either within Win64 or Linux64.
  • A function similar to the following that returns an instance of the new component class:

def GetComponent():

return MyNewComponent()

Issues that arise upon import are reported through the Message Manager.

Creating a Component

Define all functions that return “NotImplementedError”.

Editing the Python Script

Under Footprints, double-click or right-click to edit the footprint. This modifies the main menu. Then select Footprint and Edit Script. This allows modification of the Python script that is saved in the project. When finished making edits, select “Save/Run Script” under “Script” and all elements of the component are regenerated, as are component instances. Scripting issues are reported through the Message Manager.

Saving to Libraries

EDB Scripted Components can be saved just like any other component, footprint, or symbol. However, hand editing these libraries is not recommended.

Component Instances

Just like when any parametrized component is edited, modifying the parameters of the component are reflected in the component instance. If the “VerifyParameters” function is overloaded, any invalid parameter results in the parameter reverting to its previous state. This are reported through the Message Manager.