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

Script to create measure xml from measure json?

asked 2016-02-16 17:09:57 -0600

Elaine Hale's avatar

updated 2017-08-05 13:10:41 -0600

I have some measures that are equipped with measure.rb and measure.json, but no measure.xml. Is there a script somewhere I can run to populate a new xml for the measure based on what is in the json (and then I'll be happy to fill in the rest)?

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
4

answered 2016-02-23 17:49:10 -0600

The measure JSON format is being deprecated in preference to the XML one because the BCL accepts XML only. Probably the easiest thing to do is use the OS App to make a new measure, then copy your measure.rb over. You may have to edit a few fields in the XML by hand but it wouldn't be too bad for a few measures.

edit flag offensive delete link more
0

answered 2016-02-17 20:58:13 -0600

If it's just a straight format conversion (I should know the answer to this but I don't), then there are a few utilities including this one in my favorite language.

edit flag offensive delete link more

Comments

Looking at a measure with both formats, it looks like that would get me part of the way there, but not all the way to an XML that actually fits the measure XML schema ... What I am really hoping is that Dan has a script sitting somewhere ...

Elaine Hale's avatar Elaine Hale  ( 2016-02-18 16:42:44 -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: 2016-02-16 17:09:57 -0600

Seen: 263 times

Last updated: Feb 23 '16