Question-and-Answer Resource for the Building Energy Modeling Community
Get started with the Help page
Ask Your Question

Revision history [back]

This will return a value if the definition has a value for this field, but otherwise the optional will be empty. peopleDefinition.peopleperSpaceFloorArea.get

This will return a value regardless of which input field use used for the definition, but you do have to pass it the are to use of the calculation.

peopleDefinition.getPeoplePerFloorArea

Use the link provided in @Eric Ringold's answer for more options for this definition.

This will return a value if the definition has a value for this field, but otherwise the optional will be empty. empty.

peopleDefinition.peopleperSpaceFloorArea.get

This will return a value regardless of which input field use used for the definition, but you do have to pass it the are to use of the calculation.

peopleDefinition.getPeoplePerFloorArea

Use the link provided in @Eric Ringold's answer for more options for this definition.

This will return a value if the definition has a value for this field, but otherwise the optional will be empty. Putting it in an if statement protects against the ruby error if the optional is empty.

 if peopleDefinition.peopleperSpaceFloorArea.is_initialized
  peopleDefinition.peopleperSpaceFloorArea.get
end

This will return a value regardless of which input field use used for the definition, but you do have to pass it the are to use of the calculation.

 peopleDefinition.getPeoplePerFloorArea

Use the link provided in @Eric Ringold's answer for more options for this definition.

This "peopleperSpaceFloorArea." will return a value if the definition has a value for this field, but otherwise the optional will be empty. Putting it in an if statement protects against the ruby error if the optional is empty.

if peopleDefinition.peopleperSpaceFloorArea.is_initialized
  peopleDefinition.peopleperSpaceFloorArea.get
end

This "getPeoplePerFloorArea" will return a value regardless of which input field use used for the definition, but you do have to pass it the are to use of the calculation.

peopleDefinition.getPeoplePerFloorArea

Use the link provided in @Eric Ringold's answer for more options for this definition.

"peopleperSpaceFloorArea." "peopleperSpaceFloorArea" will return a value if the definition has a value for this field, but otherwise the optional will be empty. Putting it in an if statement protects against the ruby error if the optional is empty.

if peopleDefinition.peopleperSpaceFloorArea.is_initialized
  peopleDefinition.peopleperSpaceFloorArea.get
end

"getPeoplePerFloorArea" will return a value regardless of which input field use used for the definition, but you do have to pass it the are to use of the calculation.

peopleDefinition.getPeoplePerFloorArea

Use the link provided in @Eric Ringold's answer for more options for this definition.

"peopleperSpaceFloorArea" will return a value if the definition has a value for this field, but otherwise the optional will be empty. Putting it in an if statement protects against the ruby error if the optional is empty.

if peopleDefinition.peopleperSpaceFloorArea.is_initialized
  peopleDefinition.peopleperSpaceFloorArea.get
end

"getPeoplePerFloorArea" will return a value regardless of which input field use used for the definition, but you do have to pass it the are floor to use of the calculation.

peopleDefinition.getPeoplePerFloorArea
peopleDefinition.getPeoplePerFloorArea(area)

Use the link provided in @Eric Ringold's answer for more options for this definition.