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

Has MaterialProperty:GlazingSpectralData been wrapped in OS?

asked 2017-03-23 12:11:27 -0500

gokul's avatar

updated 2020-01-25 18:25:14 -0500

I am trying to import my Glazing properties from WINDOW into OS 1.14.0, by generating an idf and importing it into OS. When I do this, my Spectral data set doesn't forward translate to idf, similar to this issue. The 'Window Glass Spectral Data Set Name' is blank(image) image.

The issue mentioned above in Github asks the same question, and identifies that the MaterialProperty:GlazingSpectralData is not wrapped in OS. But it seems to have been marked as a milestone for OS 1.14 and closed, so I was wondering if this has been fixed? If not, do I have to write an Eplus script to read this object from the idf? Thanks,

edit retag flag offensive close merge delete


Also, if I use this glazing with 'Optical Data Type' set as SpectralAverage, the model runs to completion, even if the Solar and Visible transmittance fields are blank. Where do the values for these come from? Sorry in advance for the barrage of questions.

gokul's avatar gokul  ( 2017-03-23 14:18:16 -0500 )edit

From your question it sounds like you're trying to import IDF objects to OS, which would require a reverse translation of the WINDOW objects not a forward translation. Are you using the Inject IDF Objects measure?

MatthewSteen's avatar MatthewSteen  ( 2017-03-23 16:32:37 -0500 )edit

I was using the 'Import> idfConstructionSchedules' measure in SketchUp OS Plugin.

gokul's avatar gokul  ( 2017-03-23 17:07:11 -0500 )edit

I'm not familiar with the Extensions > OpenStudio > Import > Import EnergyPlus Idf Constructions measure in the SketchUp Plugin, but it doesn't seem appropriate for importing these objects.

MatthewSteen's avatar MatthewSteen  ( 2017-03-23 20:00:17 -0500 )edit

2 Answers

Sort by ยป oldest newest most voted

answered 2017-03-27 13:22:22 -0500

gokul's avatar

Thanks Matthew, that's exactly what I managed to do. To summarize what I did:

I imported my constructions from WINDOW 6 through the SketchUp script: Extensions>>Openstudio>>Import>>Import EnergyPlus Idf Constructions. This doesn't import the MaterialProperty:GlazingSpectralData object, and leaves the 'Window Glass Spectral Data Set Name' blank in the imported 'WindowMaterial:Glazing'.

I created an EnergyPlus script which imports 'MaterialProperty:GlazingSpectralData' object from the specified idf path and also searches and stores the 'Name' of the Spectral Data Set. I then set the 'Window Glass Spectral Data Set Name' of the required WindowMaterial:Glazing with the Name extracted.

Note: I realized that the it would have been easier to import the whole idf through the Eplus script, but then I couldn't assign my new window constructions to specific windows in the SketchUp app. Also, I'm including this as an answer, and not a comment because of the length of the response.

edit flag offensive delete link more

answered 2017-03-23 14:22:41 -0500

updated 2017-03-23 14:46:30 -0500

Yes, it looks like MaterialPropertyGlazingSpectralData was added to the SDK for version 1.14.0.

Testing with the Ruby bindings confirms it.

require 'openstudio'

model =

mpgsd =

puts model

  {aaed64b9-c1d7-4808-8a19-0b323eaa3884}, !- Handle
  1.14.0;                                 !- Version Identifier

  {8404302e-0f13-4db1-9fda-2b6e4f2dcb35}, !- Handle
  Material Property Glazing Spectral Data 1; !- Name
edit flag offensive delete link more


Thanks Matthew Steen, I am not sure why OS is not recognizing the 'Window Glass Spectral Data Set Name' from the imported idf in that case.

gokul's avatar gokul  ( 2017-03-23 15:10:00 -0500 )edit

Ok, trying to reverse translate the IDFs from WINDOW shows this:

[openstudio.model.StandardGlazing] <0> StandardGlazing::setWindowGlassSpectralDataSetName is deprecated, use StandardGlazing::setWindowGlassSpectralDataSet

So this could be a bug. Maybe @macumber can comment.

MatthewSteen's avatar MatthewSteen  ( 2017-03-23 20:36:40 -0500 )edit

Which leads me to believe that you'll need a "hybrid" EnergyPlus/OpenStudio approach, e.g. make your OSM ready to accept the WINDOW IDF and then use an EnergyPlus measure at runtime.

MatthewSteen's avatar MatthewSteen  ( 2017-03-23 20:37:00 -0500 )edit

Thanks for all the help Matthew:) Used these to create an Eplus script approach, and have detailed the procedure below (It was too ling of a response to comment!)

gokul's avatar gokul  ( 2017-03-27 13:24:04 -0500 )edit

Nice. Feel free to accept your own answer as well.

MatthewSteen's avatar MatthewSteen  ( 2017-03-27 13:39:10 -0500 )edit

Your Answer

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

Add Answer

Training Workshops

Question Tools

1 follower


Asked: 2017-03-23 12:11:27 -0500

Seen: 562 times

Last updated: Mar 27 '17