First time here? Check out the Help page!
1 | initial version |
model.runPeriod
returns an optional type. To get the actual RunPeriod object you first need to check if the object is 'empty' (see the 'OpenStudio Measures and the boost::optional Type' section here. So for instance:
run = model.runPeriod.get if not model.runPeriod.emtpy?
will return an object of class OpenStudio::Model::RunPeriod if the osm has a run period object, or false
if it doesn't.
Once you get the actual object, running the methods
method will show the full list of methods for that object.
2 | No.2 Revision |
model.runPeriod
returns an optional optional type. To get the actual RunPeriod object you first need to check if the object is 'empty' (see the 'OpenStudio Measures and the boost::optional Type' section here. So for instance:
run = model.runPeriod.get if not model.runPeriod.emtpy?
will return an object of class OpenStudio::Model::RunPeriod if the osm has a run period object, or false
if it doesn't.
Once you get the actual object, running the methods
method will show the full list of methods for that object. object.
3 | No.3 Revision |
model.runPeriod
returns an optional type. To get the actual RunPeriod object you first need to check if the object is 'empty' (see the 'OpenStudio Measures and the boost::optional Type' section here. ). So for instance:
run = model.runPeriod.get if not model.runPeriod.emtpy?
will return an object of class OpenStudio::Model::RunPeriod if the osm has a run period object, or false
if it doesn't.
Once you get the actual object, running the methods
method will show the full list of methods for that object.
4 | No.4 Revision |
model.runPeriod
returns an optional type. To get the actual RunPeriod object you first need to check if the object is 'empty' (see the 'OpenStudio Measures and the boost::optional Type' section here). So for instance:
run = model.runPeriod.get if not model.runPeriod.emtpy?
model.runPeriod.empty?
will return an object of class OpenStudio::Model::RunPeriod if the osm has a run period object, or false
if it doesn't.
Once you get the actual object, running the methods
method will show the full list of methods for that object.