Question-and-Answer Resource for the Building Energy Modeling Community
Get s tarted with the Help page
Ask Your Question
2

From space to thermal zone

asked 2017-05-11 10:17:49 -0500

PaoloMassaroni gravatar image

updated 2017-08-05 07:33:26 -0500

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.

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
5

answered 2017-05-11 11:44:50 -0500

updated 2017-05-11 11:53:31 -0500

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:

edit flag offensive delete link more
2

answered 2017-05-11 11:52:00 -0500

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.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

 

Question Tools

Stats

Asked: 2017-05-11 10:17:49 -0500

Seen: 1,119 times

Last updated: May 11 '17