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

Is it possible to use relative references in .osw?

asked 2018-10-27 22:45:49 -0600

TomB's avatar

Is it possible to use relative references in an openstudio workflow file (.osw) ? i.e

"file_path" : "./measures/my_measure.rb"

rather than absolute path to each resource, i.e.

"file_path":"C\\simulations\\job\\measures\\my_measure.rb"
edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2018-10-28 08:44:16 -0600

Yes. Click on the OSW JSON Schema link from the CLI documentation and you'll see this description:

"file_paths": { "description": "A set of ordered directories relative to root_directory to search for required files and libraries", "type": "array", "items": { "description": "A path relative to the root_dir which should be searched for support files and folders", "type": "string" } },

And then the definition of the root directory:

"root": { "description": "Path to the root directory against which relative paths are evaluated. If root is empty, the directory containing the osw is used.", "type": "string" },
edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Training Workshops

Careers

Question Tools

1 follower

Stats

Asked: 2018-10-27 22:45:49 -0600

Seen: 128 times

Last updated: Oct 28 '18