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

Set Window to Wall Ratio in Sketchup fails

asked 2015-03-27 05:41:40 -0500

updated 2017-08-05 13:03:51 -0500

I'm modeling a building with OpenStudio that has a lot of glazing according to Appendix G, so for the baseline I need to reset the window to wall ratio to 0.4. Seems like a perfect application to leverage the User Script "Set Window to Wall Ratio".

The problem I'm getting is that it doesn't do anything on my model, even if I try on very simple zones like the following.

Example of one zone

One I select the outdoor surface and apply the measure, nothing changes:

Surface selected

One thing is that, if I create a new space in my model and put a cube in there, the "Set Window to Wall Ratio" user script works like a charm on this.

Can someone offer a clue as to why it doesn't work?

Update: Here is the link to the problematic OSM File if someone can take a look

edit retag flag offensive close merge delete

Comments

Are, for some reason, the wall outside boundary conditions not set to 'Outdoors'? When you run the measure do you get any warnings or errors? In case you didn't know, the measure code is located in OpenStudio 1.6.0\Ruby\openstudio\sketchup_plugin\user_scripts\Alter or Add Model Elements\Set_Window_to_Wall_Ratio.rb

Eric Ringold gravatar image Eric Ringold  ( 2015-03-27 07:55:06 -0500 )edit

Wall outside boundary condition is set to outdoors (I checked the measure code to see what it was doing and it should pick it up). I don't get any kind of warnings or error. The ruby console: "Running Set Window to Wall Ratio User script Set Window to Wall Ratio completed"

Julien Marrec gravatar image Julien Marrec  ( 2015-03-27 08:12:06 -0500 )edit

Which space are you trying to apply this to? All of them? If so can we pick one space to focus on for discussion?

macumber gravatar image macumber  ( 2015-03-27 11:54:03 -0500 )edit
1

I was trying all of them, but we can take the above pictured one, called "1-Top-Right-Mid-Bottom_Retail" (great name, I know =) )

Julien Marrec gravatar image Julien Marrec  ( 2015-03-27 12:01:37 -0500 )edit

2 Answers

Sort by ยป oldest newest most voted
3

answered 2015-03-27 11:13:03 -0500

Do you have the surface or containing space selected? I believe the measure only applies to surfaces that are in the current selection.

edit flag offensive delete link more

Comments

Dan, yes, I use the filter tool, by OS:Surface, Type= Wall, Boundary condition = Outdoors. By default that returns every surface selected. As I said, if I create a new space with a dumb box, it works... I added the osm in question, I'd love for someone to take a look... That would help me tremendously, I kinda need this to work like, for yesterday :) (ain't that always the case?)

Julien Marrec gravatar image Julien Marrec  ( 2015-03-27 11:18:34 -0500 )edit
2

Julien, I see the script working for one surface - Surface 11 of space "Small-Disconnected". A clue, perhaps?

Eric Ringold gravatar image Eric Ringold  ( 2015-03-27 11:27:47 -0500 )edit

This may very well be the only perfectly rectangular surface in my model... That'll teach me to create geometry in Rhino using the architect's model as drawing guide...

Julien Marrec gravatar image Julien Marrec  ( 2015-03-27 11:31:58 -0500 )edit

Very interesting. @macumber, so OS only plays nice with perfectly rectangular surfaces?

Eric Ringold gravatar image Eric Ringold  ( 2015-03-27 11:41:49 -0500 )edit
2

answered 2015-03-27 08:30:51 -0500

updated 2015-09-02 18:13:13 -0500

I'm not sure why the SU script isn't working, but will your workflow/project allow you to work in OpenStudio instead? If so, I would suggest the Add Remove Or Replace Windows using the Apply Measure Now feature. It will apply the WWR across all exterior surfaces on a given facade which will save time if the model has several spaces.

edit flag offensive delete link more

Comments

So I've tried the Set Window to Wall Ratio by Facade Measure. I've modified it to check all surfaces ( surfaces = model.getSurfaces) and adding and additional check for SunExposed (next if not s.sunExposure == "SunExposed"). With that it's saying the WWR ratio is too large for the surface (I'm asking for 0.4). It's not deleting any of the existing windows...

Julien Marrec gravatar image Julien Marrec  ( 2015-03-27 09:40:33 -0500 )edit

@Julien Marrec it seems to be related to the "complex" (triangular) window shapes. I'm guessing the built in OS method setWindowToWallRatio doesn't work on non-rectangular surfaces. This line in the BCL measure:

new_window = s.setWindowToWallRatio(wwr, sillHeight_si.value, true)
MatthewSteen gravatar image MatthewSteen  ( 2015-03-27 11:22:42 -0500 )edit

@MatthewSteen, I thought about that. But why wouldn't it work on the above space and exterior surface... this one has one wall and one window?Maybe the wall isn't exactly rectangular though, and that might be the problem. Is there a way to scale the existing windows or something?

Julien Marrec gravatar image Julien Marrec  ( 2015-03-27 11:24:52 -0500 )edit
2

@Julien Marrec: here is the code for setWindowToWallRatio and it ends up calling this method. In general OpenStudio is fine with non-rectangular surfaces. However, the algorithm that applies windows in this method requires rectangular surfaces. Here is the rectangular check.

macumber gravatar image macumber  ( 2015-03-27 11:53:23 -0500 )edit

I'm revisiting this recently... Is there any reason we couldn't apply a WWR to a triangular surface? If not, I'll add it on user voice I guess

Julien Marrec gravatar image Julien Marrec  ( 2015-09-02 10:51:44 -0500 )edit

Your Answer

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

Add Answer

 

Question Tools

1 follower

Stats

Asked: 2015-03-27 05:41:40 -0500

Seen: 748 times

Last updated: Sep 02 '15