iddfile = "../iddfiles/Energy+V7_2_0.idd" IDF.setiddname(iddfile) fname1 = "../idffiles/V_7_2/smallfile.idf" idf1 = IDF(fname1) # <markdowncell> # idf1 now holds all the data to your in you idf file. # # Now that the behind-the-scenes work is done, we can print this file. # <codecell> idf1.printidf() # <markdowncell> # Looks like the same file as before, except that all the comments are slightly different. # <markdowncell> # As you can see, this file has four objects: # # - VERSION # - SIMULATIONCONTROL # - BUILDING # - SITE:LOCATION # #
# Copyright (c) 2012 Santosh Philip # This file is part of eppy. # Eppy is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # Eppy is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # You should have received a copy of the GNU General Public License # along with eppy. If not, see <http://www.gnu.org/licenses/>. """read an idf file and print it to screen""" # ex_readprint.py from modeleditor import IDF iddfile = "../iddfiles/Energy+V8_0_0.idd" IDF.setiddname(iddfile) fname = "../idffiles/V_7_2/smallfile.idf" idf = IDF(fname) idf.printidf()