assign_surface_material#

Icepak.assign_surface_material(obj: str | list, mat: str) bool#

Assign a surface material to one or more objects.

Parameters:
objstr, list

One or more objects to assign surface materials to.

matstr

Material to assign. The material must be present in the database.

Returns:
bool

True when successful, False when failed.

References

>>> oEditor.ChangeProperty

Examples

>>> from ansys.aedt.core.icepak import Icepak
>>> obj = Icepak()
>>> obj.assign_surface_material("HeatSink", "Steel-oxidised-surface")