set_objects_temperature#

Modeler2D.set_objects_temperature(assignment, ambient_temperature=22, create_project_var=False)[source]#

Assign temperatures to objects.

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

Parameters:
assignmentlist

List of objects.

ambient_temperaturefloat, 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