duplicate_material#
- Materials.duplicate_material(material, name=None, properties=None)#
Duplicate a material.
- Parameters:
- material
str
Name of the material.
- name
str
Name for the copy of the material. If a new name is not specified, the new material name is
material_name
plusa “_clone”`` suffix.- properties
list
List of properties to parameterize when the material is duplicated. Parameterized properties have project scope. Options are:
‘permittivity’
‘permeability’
‘conductivity’
‘dielectric_loss_tan’
‘magnetic_loss_tan’
- material
- Returns:
References
>>> oDefinitionManager.AddMaterial
Examples
>>> from ansys.aedt.core import Hfss >>> hfss = Hfss() >>> hfss.materials.add_material("MyMaterial") >>> hfss.materials.duplicate_material("MyMaterial","MyMaterial2")