Aymen Mzoughi
Ansys Employee

Please have a look at this example from pyAEDT:

https://aedt.docs.pyansys.com/version/stable/examples/02-HFSS/Array.html#sphx-glr-examples-02-hfss-array-py