duplicate_material#
- Materials.duplicate_material(material_name, new_name=None, props=None)[source]#
Duplicate a material.
- Parameters:
- material_name
str
Name of the material.
- new_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.- props
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_name
- Returns:
References
>>> oDefinitionManager.AddMaterial
Examples
>>> from pyaedt import Hfss >>> hfss = Hfss() >>> hfss.materials.add_material("MyMaterial") >>> hfss.materials.duplicate_material("MyMaterial", "MyMaterial2")