Use AdditionalProperties
instead of object name comparisons
#1450
Labels
AdditionalProperties
instead of object name comparisons
#1450
OS-HPXML originally had to rely on object names (e.g.,
Constants.ObjectNameFoo
) in many situations to understand what building component a, e.g.,ElectricEquipment
orInfiltrationDesignFlowRate
object represents. But this comes with some risk because object names may end up with various string prefixes/suffixes (e.g., if there are multiple objects of the same type), or get converted to snake_case, etc.Now that the OpenStudio
AdditionalProperties
object exists, we should audit our code and start using it. It will eliminate this risk once and for all.The text was updated successfully, but these errors were encountered: