duplicate_surface_material#

Materials.duplicate_surface_material(material, name)#

Duplicate a surface material.

Parameters:
materialstr

Name of the surface material.

namestr

Name for the copy of the surface material.

Returns:
ansys.aedt.core.modules.SurfaceMaterial

References

>>> oDefinitionManager.AddSurfaceMaterial

Examples

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