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

Revision history [back]

retrieving specific idf fieldnames with eppy

Hello, I am a eppy beginner and am trying to replace certain parameters with @@labels@@ in order to prepare an idf file for jeplus. The first step would be to retrieve the Z coordinates for walls and ceilings' top vertexes. Having written the code:

geometry = idf1.idfobjects['buildingsurface:detailed'.upper()] idf_ceiling = 'RoofCeiling' idf_wall = 'Wall' idf_floor = 'Floor'

for s in surf_names: if idf_wall in s: print s print geometry.fieldnames

returns the error:

AttributeError: 'Idf_MSequence' object has no attribute 'fieldnames'

retrieving specific idf fieldnames with eppy

Hello, I am a eppy beginner and am trying to replace certain parameters with @@labels@@ in order to prepare an idf file for jeplus. The first step would be to retrieve the Z coordinates for walls and ceilings' top vertexes. Having written the code:

geometry = idf1.idfobjects['buildingsurface:detailed'.upper()] idf_ceiling = 'RoofCeiling' idf_wall = 'Wall' idf_floor = 'Floor'

for s in surf_names: if idf_wall in s: print s print geometry.fieldnames

returns the error:

AttributeError: 'Idf_MSequence' object has no attribute 'fieldnames'