delete_sweep#

SetupHFSS.delete_sweep(name)[source]#

Delete a sweep.

Parameters:
namestr

Name of the sweep.

Returns:
bool

True when successful, False when failed.

References

>>> oModule.DeleteSweep

Examples

Create a frequency sweep and then delete it.

>>> import ansys.aedt.core
>>> hfss = ansys.aedt.core.Hfss()
>>> setup1 = hfss.create_setup(name='Setup1')
>>> setup1.create_frequency_sweep(
    "GHz", 24, 24.25, 26, "Sweep1", sweep_type="Fast",
)
>>> setup1.delete_sweep("Sweep1")