You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We should implement support for it, or warn when you try to add an AttributeVector in BCLXML::addAttribute.
Steps to Reproduce
bclXML=OpenStudio::BCLXML.new('measure.xml')consideration1=OpenStudio::Attribute.new("consideration","Check transformer capacity when installing a heat pump.")consideration2=OpenStudio::Attribute.new("consideration","Verify wiring compliance with local electrical codes before installation.")implementation_considerations=OpenStudio::Attribute.new("implementation_considerations",[consideration1,consideration2])n=bclXML.attributes.size# The bclXML has the new attribute, but it will NOT be serialized to measure.xml when you save, nor in putsbclXML.addAttribute(implementation_considerations)raiseunlessbclXML.attributes.size == n + 1putsbclXML
Issue overview
OpenStudio::Attribute has an AttributeVector value type, but it is not supported by BCLXML.
Current Behavior
No warning is issued, but it is not serialized in saving. Nor would it be read.
OpenStudio/src/utilities/bcl/BCLXML.cpp
Lines 687 to 690 in 4303dda
Expected Behavior
We should implement support for it, or warn when you try to add an AttributeVector in
BCLXML::addAttribute
.Steps to Reproduce
Details
Environment
Some additional details about your environment for this issue (if relevant):
Context
Just realized this after trying to add nested attributes in measure.xml
The text was updated successfully, but these errors were encountered: