Layer Stack in Circuit #6434
-
Hi, I try to add a layer stack to a Circuit design in order to have distributed elements. I do this with:
Then I get the error: 'circuit' object has no attribute 'model_units' on add_layer How can I do better? Thanks. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi @georgmichel , Circuit API in PyAEDT is not yet the stackup creation. You can of course creating it in HFSS 3DLayout which is directly connected to Circuit. from ansys.aedt.core import Hfss3dLayout If you are interested in Filter, you can use FilterSolutions API: |
Beta Was this translation helpful? Give feedback.
Hi @georgmichel ,
Circuit API in PyAEDT is not yet the stackup creation.
You can of course creating it in HFSS 3DLayout which is directly connected to Circuit.
from ansys.aedt.core import Hfss3dLayout
h3d = Hfss3dLayout(version="2025.2")
h3d.modeler.layers.add_layer("TOP")
h3d.modeler.create_rectangle("TOP", [20, 20], [50, 50], name="rect_1")
h3d.modeler.create_line("TOP", [[25, 25], [40, 40]])
If you are interested in Filter, you can use FilterSolutions API:
https://aedt.docs.pyansys.com/version/stable/API/FilterSolutions.html