checkifmaterialexists#

Materials.checkifmaterialexists(mat)[source]#

Check if a material exists in AEDT or PyAEDT Definitions.

Parameters:
matstr

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

Returns:
pyaedt.modules.Material.Material

Material object if present, False when failed.

References

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