add_material_sweep#
- Materials.add_material_sweep(assignment, name)#
Create a sweep material made of an array of materials.
- Parameters:
- 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")