Skip to content

How to delete a lumped port in Excitations of HFSS 3D Modeler? #4953

Closed Answered by Vamsi-Yaddanapudi
passiondong asked this question in Q&A
Discussion options

You must be logged in to vote

Here is the code snipper for deleting the port in HFSS 3D Environment.

import pyaedt
import os

PROJ_NAME = 'Coplaner_Patch_ITO_square.aedt'
PROJ_PATH = r'C:\Users\ykrishna\Downloads\Shared_project'

hfss = pyaedt.Hfss(os.path.join(PROJ_PATH,PROJ_NAME))

boundaries = hfss.boundaries_by_type
lumped_ports = boundaries["Lumped Port"]
#If need to check the name in case of multiple ports
#port_name = lumped_ports[0]._name
lumped_ports[0].delete().

Thanks to Samuel for helping to come up with above script. I have tested and it works

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by Samuelopez-ansys
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants