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

Revision history [back]

You could do this with OpenStudio, specifically OpenStudio::Workspace. Something like...

require 'openstudio'
ws = OpenStudio::Workspace::load('/path/to/input.idf').get
ws.order.setOrderByIddEnum
ws.save '/path/to/output.idf'

You could do this with OpenStudioOpenStudio Idf classes, specifically . Specifically OpenStudio::Workspace. Something like...

require 'openstudio'
ws = OpenStudio::Workspace::load('/path/to/input.idf').get
ws.order.setOrderByIddEnum
ws.save '/path/to/output.idf'