set_objects_temperature#

Modeler2D.set_objects_temperature(objects, ambient_temp=22, create_project_var=False)[source]#

Assign temperatures to objects.

The materials assigned to the objects must have a thermal modifier.

Parameters:
objectslist

List of objects.

ambient_tempfloat, optional

Ambient temperature. The default is 22.

create_project_varbool, optional

Whether to create a project variable for the ambient temperature. The default is False. If True, $AmbientTemp is created.

Returns:
bool

True when successful, False when failed.

References

>>> oDesign.SetObjectTemperature