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

Revision history [back]

Using eppy to retrieve idf objects fieldnames

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'

Using eppy to retrieve idf objects fieldnames

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()] idf1.idfobjects['buildingsurface:detailed'.upper()]

idf_ceiling = 'RoofCeiling' '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'

Using eppy to retrieve idf objects fieldnames

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'


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'

Using eppy to retrieve idf objects fieldnames

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'


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'

Using eppy to retrieve idf objects fieldnames

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:

surfaces = idf1.idfobjects['BUILDINGSURFACE:DETAILED']

surf_names = [surface.Name for surface in surfaces]

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'


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'

Using eppy to retrieve idf objects fieldnames

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:

surfaces

**surfaces = idf1.idfobjects['BUILDINGSURFACE:DETAILED']

surf_names idf1.idfobjects['BUILDINGSURFACE:DETAILED']** **surf_names = [surface.Name for surface in surfaces]

surfaces]**

geometry = idf1.idfobjects['buildingsurface:detailed'.upper()]

idf1.idfobjects['buildingsurface:detailed'.upper()] idf_ceiling = 'RoofCeiling'

'RoofCeiling' idf_wall = 'Wall' idf_floor = 'Floor'

'Floor'

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

s; #print geometry[s].area

returns the error:

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

Using eppy to retrieve idf objects fieldnames

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:

**surfaces = idf1.idfobjects['BUILDINGSURFACE:DETAILED']**
**surf_names = [surface.Name for surface in surfaces]** 

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

for s in surfaces:
    if sub in s:
        print s; #print geometry[s].area

returns the error:

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