First time here? Check our help page!
4

How do you upload a measure to BCL?

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.

Julien Marrec's avatar
29.7k
Julien Marrec
asked 2015-09-17 12:42:15 -0500
edit flag offensive 0 remove flag close merge delete

Comments

add a comment see more comments

1 Answer

2

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.

David Goldwasser's avatar
20.4k
David Goldwasser
answered 2015-09-17 14:42:34 -0500
edit flag offensive 0 remove flag delete link

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 -0500) 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 -0500) 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 -0500) edit
add a comment see more comments