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

Convert XML to OSM

asked Jan 13

Khosro's avatar

updated Jan 13

Hi all,

I read all of the previous questions about these and I tried them to convert an HPXML file to OSM model (like this). I used the resources/hpxml-measures/HPXMLtoOpenStudio measure, but it only creates another XML file named in.xml.

Is that the correct workflow?

Is there any other way to create an OSM model from an existing XML file?

Preview: (hide)

1 Answer

Sort by » oldest newest most voted
3

answered Jan 14

The HPXMLtoOpenStudio measure doesn't write the OpenStudio model to disk by default, rather it's generally used as part of an OpenStudio Workflow (example) where the measure creates an OpenStudio model in memory, it's translated to EnergyPlus (IDF), the simulation is run, and various outputs are reported. Or there is a run_simulation.rb script that you can use instead. See the Usage Instructions for more details on these two ways of running simulations.

That said, the measure will produce an OSM if you set the debug argument to True.

Preview: (hide)
link

Comments

Thanks a lot. That worked perfectly.

Khosro's avatar Khosro  ( Jan 14 )

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: Jan 13

Seen: 274 times

Last updated: Jan 14