lib/openstudio-standards/btap/fileio.rb in openstudio-standards-0.1.11 vs lib/openstudio-standards/btap/fileio.rb in openstudio-standards-0.1.12
- old
+ new
@@ -44,11 +44,11 @@
end
# Get the name of the model.
# @author Phylroy A. Lopez
# @return [String] the name of the model.
def self.get_name(model)
- unless model.building.get.getAttribute("name").empty?
- return model.building.get.getAttribute("name").get.valueAsString
+ unless model.building.get.name.empty?
+ return model.building.get.name.get.to_s
else
return ""
end
end
\ No newline at end of file