create_pec_on_component_by_nets#

Hfss3dLayout.create_pec_on_component_by_nets(component: str, nets: str | list) bool#

Create a PEC connection on a component for a list of nets.

Parameters:
componentstr

Component name.

netsstr, list

Nets to include.

Returns:
bool

True when successful, False when failed.

References

>>> oEditor.CreateEdgePort

Examples

>>> from ansys.aedt.core import Hfss3dLayout
>>> hfss3d = Hfss3dLayout()
>>> hfss3d.create_pec_on_component_by_nets(component="U1", nets="GND")