lib/from_openstudio/construction/window.rb in honeybee-openstudio-2.26.0 vs lib/from_openstudio/construction/window.rb in honeybee-openstudio-2.27.0
- old
+ new
@@ -39,9 +39,12 @@
# create an empty hash
hash = {}
hash[:type] = 'WindowConstructionAbridged'
# set hash values from OpenStudio Object
hash[:identifier] = clean_name(construction.nameString)
+ unless construction.displayName.empty?
+ hash[:display_name] = (construction.displayName.get).force_encoding("UTF-8")
+ end
hash[:materials] = []
# get construction layers
layers = construction.layers
layers.each do |layer|
name = clean_name(layer.nameString)