add_material_sweep#

Materials.add_material_sweep(assignment, name)#

Create a sweep material made of an array of materials.

Parameters:
assignmentlist

List of materials to merge into a single sweep material.

namestr

Name of the sweep material.

Returns:
int

Index of the project variable.

References

>>> oDefinitionManager.AddMaterial

Examples

>>> from ansys.aedt.core import Hfss
>>> hfss = Hfss()
>>> hfss.materials.add_material("MyMaterial")
>>> hfss.materials.add_material("MyMaterial2")
>>> hfss.materials.add_material_sweep(["MyMaterial", "MyMaterial2"],"Sweep_copper")