Codex skill for automating ANSYS HFSS through PyAEDT on Windows.
This repository packages a local skill named hfss-pyaedt for:
- checking whether PyAEDT and AEDT/HFSS are available
- creating a minimal HFSS project from the command line
- reopening an existing
.aedtproject, updating variables, rerunning analysis, and exporting Touchstone
SKILL.md: skill instructions for Codexagents/openai.yaml: UI metadatascripts/hfss_workflow.py: automation entrypointreferences/: workflow recipes and environment checklist
- Windows
- local ANSYS Electronics Desktop / HFSS installation
- Python with
pyaedtinstalled
Run the environment doctor:
py -3.14 scripts/hfss_workflow.py doctorCreate a minimal project:
py -3.14 scripts/hfss_workflow.py new-box-project `
--project C:\temp\hfss\demo_box.aedt `
--design HFSSDesign1 `
--solution-type DrivenModal `
--origin 0mm,0mm,0mm `
--size 10mm,10mm,1mm `
--create-open-region `
--setup-name Setup1 `
--setup-frequency 10GHz `
--sweep-name Sweep1 `
--sweep-start 8 `
--sweep-stop 12 `
--sweep-count 401Re-analyze and export Touchstone:
py -3.14 scripts/hfss_workflow.py analyze-project `
--project C:\temp\hfss\demo_box.aedt `
--design HFSSDesign1 `
--setup-name Setup1 `
--sweep-name Sweep1 `
--set-variable L=12mm `
--export-touchstone C:\temp\hfss\demo_box.s2pCopy this folder into your Codex skills directory, or install it from GitHub once published.
Default local skills directory:
%USERPROFILE%\.codex\skills
Recommended final installed folder name:
hfss-pyaedt
- The first version is intentionally narrow and stable.
- It focuses on environment diagnostics, minimal project creation, and rerun/export workflows.
- Extend
scripts/hfss_workflow.pyincrementally for metasurface, antenna, or batch sweep workflows.