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

How do you upload a measure to BCL?

asked 2015-09-17 12:42:15 -0600

You have a folder in ~\OpenStudio\Measures with at least an xml file and a ruby script, potentially some resources and unit testing.

How do you upload that to BCL cleanly?

Isn't the idea that you upload a .zip of your folder and BCL takes the .xml info to create the "Title", "Description" etc?

Should the zip have a subfolder of the measure or directly the .rb and .xml file? Should you respect any kind of naming conventions?

It seems that this never works when I try to "Upload a Measure" and I end up using "Create a Measure", which is too time consuming and the reason why I have dozens of measures I have never uploaded to BCL.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
2

answered 2015-09-17 14:42:34 -0600

Sorry, it isn't the most streamline process. Here is a link to the documentation of uploading measures.

One day it would be nice to just right click a measure in OpenStudio or PAT, and just click "Upload and Publish", but that is not on our current plans.

edit flag offensive delete link more

Comments

Is the upload supposed to fill the Title, description etc, from the xml that's in the zip?

Julien Marrec's avatar Julien Marrec  ( 2015-09-18 02:04:21 -0600 )edit

If a measure is in your "My Measures" directory and you launch OpenStudio it should update the XML for you, so you only have to work on the measure.rb file. If OpenStudio is already open and you change a measure then you need to synchronize the measure using the measures tab. The only time you would need to hand edit the measure.xml file is if you wanted to change the measure taxonomy.

It is important to make sure your XML had been updated before you make the zip file. The checksums in the XML change any time you change anything in the measure.rb file. You want current checksums.

David Goldwasser's avatar David Goldwasser  ( 2015-09-18 09:52:41 -0600 )edit

The checksum thing might have been it... Also the fact that when you click "preview" you have nothing filled, but when you do save it will fill it...

Julien Marrec's avatar Julien Marrec  ( 2015-09-18 10:19:06 -0600 )edit

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: 2015-09-17 12:42:15 -0600

Seen: 309 times

Last updated: Sep 17 '15