checkifmaterialexists#

Materials.checkifmaterialexists(material)[source]#

Check if a material exists in AEDT or PyAEDT Definitions.

Parameters:
materialstr

Name of the material. If the material exists and is not in the materials database, it is added to this database.

Returns:
ansys.aedt.core.modules.material.Material

Material object if present, False when failed.

References

>>> oDefinitionManager.GetProjectMaterialNames
>>> oMaterialManager.GetData