checkifmaterialexists

Materials.checkifmaterialexists(mat)[source]

Check if a material exists in AEDT.

Parameters
matstr

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

Returns
bool

True when successful, False when failed.

References

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