How to use the openstudio.measure.OSArgumentVector function in openstudio

To help you get started, we’ve selected a few openstudio examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github NREL / OpenStudio-workflow-gem / spec / files / python_measure / measures / PythonMeasure / measure.py View on Github external
def arguments(self, model: typing.Optional[openstudio.model.Model]=None):
        """
        define what happens when the measure is run
        """
        args = openstudio.measure.OSArgumentVector()

        example_arg = openstudio.measure.OSArgument.makeStringArgument('space_name', True)
        example_arg.setDisplayName('New space name')
        example_arg.setDescription('This name will be used as the name of the new space.')
        example_arg.setDefaultValue('default_space_name')
        args.append(example_arg)

        return args