assign_material

Maxwell2d.assign_material(obj, mat)

Assign a material to one or more objects.

Parameters
objstr or list

One or more objects to assign materials to.

matstr

Material to assign. If this material is not present, it will be created.

Returns
bool

True when successful, False when failed.

References

>>> oEditor.AssignMaterial