1

after changing thermal zone in sketchup, the thermal zone list in OS still remains the same

Hello, I changed the thermal zone in sketchup, group space1/thermalzone1 and space2/thermalzone2 together into one single zone thermalzone1. But when I came back to the OS, the theramlzone2 is still there. So I need to manually delete them in OS as well ? is there anyway to auto delete unused one? thank you

Brianna's avatar
101
Brianna
asked 2021-04-25 22:02:18 -0500
__AmirRoth__'s avatar
4.4k
__AmirRoth__
updated 2021-07-09 16:38:56 -0500
edit flag offensive 0 remove flag close merge delete

Comments

add a comment see more comments

1 Answer

1

I'm not aware of a user script that does this but it would be pretty easy to add (see end of answer). However you can take a different approach to creation and assigning of zones.

  1. Create zones that have multiple spaces and assign those spaces to the zone.
  2. When all multi-space zones have been made and assign then run the Add New Thermal Zone For Spaces With No Thermal Zone user script to create and assigns zones for the remaining spaces.

With this approach there shouldn't be a need to delete any zones. If you want to write script to delete un-used zones would look something like this.

model.getThermalZones.each do |zone|
  if zone.spaces.size == 0 then zone.remove end
  # could add further check for non zero floor area and for more than 1 space surface
end
David Goldwasser's avatar
20.4k
David Goldwasser
answered 2021-04-25 22:50:30 -0500
edit flag offensive 0 remove flag delete link

Comments

add a comment see more comments