Material#

class pyedb.libraries.common.Material(pedb, name)#

Generic material definition.

When the material name is set, the object automatically registers itself in the provided PyEDB material database if the name is not already present.

Parameters:
pedbansys.edb.core.database.Database

Active EDB session.

namestr

Material name (e.g. "Copper").

Examples

>>> m = Material(edb, "MyMaterial")
>>> m.name
'MyMaterial'
>>> edb.materials["MyMaterial"]  # now exists in the database
<Material object at ...>