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

Revision history [back]

click to hide/show revision 1
initial version

Format IDF files using command line

Is there a way to run whatever the IDF Editor runs to format the txt of the IDF file, meaning one field per line, field name added as comment, field lines indented, order objects in the IDF file by type, etc?

Based on the comments in the txt file after being formatted, I need a command line something for whatever does this,

!-Generator IDFEditor 1.50
!-Option SortedOrder

The only way I know to get the IDF file formatted and sorted is by opening the IDF Editor, adding a new object, saving the IDF, deleting the newly created object, then saving again.

I need correct formatting for a script I have written to compare PNNL models at different years and in different geographical locations. This very concisely summarizes what ASHRAE standards changed that were applicable to the building type, but the comparison is highly dependent on standard formatting and correct field names.