Editing Cbecc-Com XML input with Python?
Hi I was wondering if anyone out there has a workflow that involves editing Cbecc-Com's XML input files with Python? It seems do-able (or does it?), I thought I would ask before I start giving it a go.
My thoughts are:
- Create initial Geometry in IES
- Export to CBECC-Com
- Save CBECC-Com file as XML
- Run python scripts to parse/edit XML elements
- Import XML to CBECC com
- Repeat steps 3-5
Would be interested in hearing any work flows that include python scripts / input files!
I haven't heard of one, but Python has a built-in XML module that could be used for this. Also, CBECC-Com apparently has an API that might be useful.
I personally haven't done any scripts, but know its possible. There are several firms in the LA and San Francisco area who have presented at local IBPSA meetings on their developed processes which involve this. So all I can say is its very possible!
I know some firms have scripts to take the .idf file, auto-size the HVAC system in EnergyPlus, and then re-import autosized data into the XML file in CBECC-Com, as well as do other processes. If you are located in LA or SF, I'd highly encourage getting involved with IBPSA to chat with these firms.