First time here? Check out the Help page!

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

How to run openstudio model using CMD

asked 1 year ago

Rocker's avatar

I am using command prompt on a windows system to run openstudio model but it gives a error token Command > openstudio run -w "D:\Code_output\Conference_room_copy.osm" Error executing argv: ["run", "-w", "D:\Code_output\Conference_room_copy.osm"] Error: 783: unexpected token at 'OS:Version,

Preview: (hide)

1 Answer

Sort by » oldest newest most voted
1

answered 1 year ago

You need an OpenStudio Workflow (OSW) to run a model from command line. Using the OpenStudioApplication is the simplest to create one with measures etc (if your model is at /path/to/mymodel.osm, then at /path/to/mymodel/in.osw you have the workflow file).

The simplest one would look like this:

{
  "weather_file": "myweatherfile.epw",
  "seed_file": "mymodel.osm",
}
Preview: (hide)
link

Comments

1

I think the OSW file from the OS App gets named workflow.osw instead of in.osw. Totally agree with Julien on the rest.

Craig Simmons's avatar Craig Simmons  ( 1 year ago )

Thank you Julien and Craig!!

Rocker's avatar Rocker  ( 1 year ago )

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: 1 year ago

Seen: 139 times

Last updated: Apr 04 '23