2

From space to thermal zone

I'm asking if there is a function to automatically generate a thermal zone associated to each space, using the same name of the space for example. This would easily shorten the work time. Thank you.

PaoloMassaroni's avatar
127
PaoloMassaroni
asked 2017-05-11 10:17:49 -0500
__AmirRoth__'s avatar
4.4k
__AmirRoth__
updated 2017-08-05 07:33:26 -0500
edit flag offensive 0 remove flag close merge delete

Comments

add a comment see more comments

2 Answers

6

From the OpenStudio SketchUp plugin:

Extensions > OpenStudio User Scripts > Add or Alter Model Elements...

  1. Add New Thermal Zone For Spaces With No Thermal Zone

  2. Rename Thermal Zones Based on Space Names

...which will rename the zones as "Thermal Zone: Space Name".

If you want to change the zone name prefix and are familiar with OpenStudio Measures you can alter the the RB file from #2, which can be found here on a Windows machine:

C:\Program Files\OpenStudio 1.14.0\Ruby\openstudio\sketchup_plugin\user_scripts\Alter or Add Model Elements

Rename_ThermalZones_Based_On_Space_Names.rb

  # rename thermal zone based on first space with prefix added e.g. ThermalZone 203
  if number_of_spaces > 0
    new_name = "TZ: " + spaces_in_thermal_zone[0] + multi  
    thermal_zone.setName(new_name)
  else
    puts "#{thermal_zone.name.to_s} did not have any spaces, and will not be renamed." 
  end

Where "TZ: " is the prefix. Zone names can be identical to space names, but might cause issues such as calling the getModelObjectByName method on a model.


Other measures that may be useful:

MatthewSteen's avatar
10.1k
MatthewSteen
answered 2017-05-11 11:44:50 -0500, updated 2017-05-11 11:53:31 -0500
edit flag offensive 0 remove flag delete link

Comments

add a comment see more comments
2

Yes, there is:

image description

If you want a function to make and name the thermal zone, you can copy and save this Sketchup Userscript to your userscripts directory, located on a windows machine at "C:\Program Files\OpenStudio 1.xx.0\Ruby\openstudio\sketchup_plugin\user_scripts" or "C:\openstudio-2.x.0\SketchUpPlugin\openstudio\sketchup_plugin\user_scripts". This script does what you ask: makes a thermal zone for each space and renames it based on the space name.

mdahlhausen's avatar
9.5k
mdahlhausen
answered 2017-05-11 11:52:00 -0500
edit flag offensive 0 remove flag delete link

Comments

add a comment see more comments