# Issue with export to Openstudio

**URL:** <https://discourse.ladybug.tools/t/issue-with-export-to-openstudio/1629>\
**Category:** honeybee-legacy\
**Tags:** openstudio\
**Created:** [January 24, 2017, 7:24am UTC](https://discourse.ladybug.tools/t/issue-with-export-to-openstudio/1629 "2017-01-24T07:24:00Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![JamesCrowley](https://discourse.ladybug.tools/user_avatar/discourse.ladybug.tools/jamescrowley/32/123_2.png) [@JamesCrowley](https://discourse.ladybug.tools/u/JamesCrowley)\
**Post date:** [January 24, 2017, 7:24am UTC](https://discourse.ladybug.tools/t/issue-with-export-to-openstudio/1629/1 "2017-01-24T07:24:00Z")

</div>

Hello,   
I have made a test EnergyPlus glass material and am trying to run the export to OpenStudio component but I get the following error: -  
**Severe** WindowMaterial:Glazing=“TESTGLASS” has Optical Data Type = Spectral but has no matching MaterialProperty:GlazingSpectralData set. Is there any way to rectify this within Honeybee? So far the only way I have been able to run the simulation is within OpenStudio, by opening OpenStudio and changing the Optical Data Type of “TESTWINDOW” from “Spectral” to “SpectralAverage”. The .gh file is attached.

Thanks

[Openstudio Test.gh](https://discourse.ladybug.tools/uploads/default/original/2X/4/486b167dfdcd9c5edb6bd86a3337aa681f05043b.gh) (522 KB)

---

<div class="post-metadata">

**Author:** ![mostapha](https://discourse.ladybug.tools/user_avatar/discourse.ladybug.tools/mostapha/32/15244_2.png) [@mostapha](https://discourse.ladybug.tools/u/mostapha)\
**Post date:** [January 24, 2017, 7:41am UTC](https://discourse.ladybug.tools/t/issue-with-export-to-openstudio/1629/2 "2017-01-24T07:41:00Z")

</div>

This is a bug in the OpenStudio API. Honeybee assigns the values correctly but it gets overwritten by OpenStudio. I fixed it in your example file and will make sure to fix it for the updates version. Cheers.

[OpenstudioTest\_msr.gh](https://discourse.ladybug.tools/uploads/default/original/2X/8/8e0e924b81a2565fa7c43565e276385a2e166af1.gh) (522 KB)

---

<div class="post-metadata">

**Author:** ![mostapha](https://discourse.ladybug.tools/user_avatar/discourse.ladybug.tools/mostapha/32/15244_2.png) [@mostapha](https://discourse.ladybug.tools/u/mostapha)\
**Post date:** [January 24, 2017, 7:45am UTC](https://discourse.ladybug.tools/t/issue-with-export-to-openstudio/1629/3 "2017-01-24T07:45:00Z")

</div>

I just checked the most recent version and it’s already fixed by Chris.
