duplicate_surface_material#

Materials.duplicate_surface_material(material, new_name)[source]#

Duplicate a surface material.

Parameters:
materialstr

Name of the surface material.

new_namestr

Name for the copy of the surface material.

Returns:
pyaedt.modules.SurfaceMaterial

References

>>> oDefinitionManager.AddSurfaceMaterial

Examples

>>> from pyaedt import Hfss
>>> hfss = Hfss()
>>> hfss.materials.add_surface_material("MyMaterial")
>>> hfss.materials.duplicate_surface_material("MyMaterial", "MyMaterial2")