remove_material#

Materials.remove_material(material, library='Project')[source]#

Remove a material.

Parameters:
materialstr

Name of the material.

librarystr, optional

Name of the library containing this material. The default is "Project".

Returns:
bool

True when successful, False when failed.

References

>>> oDefinitionManager.RemoveMaterial

Examples

>>> from ansys.aedt.core import Hfss
>>> hfss = Hfss()
>>> hfss.materials.add_material("MyMaterial")
>>> hfss.materials.remove_material("MyMaterial")