Skip to content

KeyError: 'WindowMaterial:SimpleGlazingSystem' #202

@daniellosg

Description

@daniellosg

Hi Jamie,

I've been working on a script. So, when i tried to make a list of the objects 'WindowMaterial:SimpleGlazingSystem', got the following error:

  File "xxxx", line 155, in <module>
    simpleglazinglist = ([simpleglazing.Name for simpleglazing in idf1.idfobjects['WindowMaterial:SimpleGlazingSystem']])

KeyError: 'WindowMaterial:SimpleGlazingSystem'

I got this error when i included from geomeppy import IDF. However, there was no error when i included

from eppy import modeleditor
from eppy.modeleditor import IDF

Finally, to make the script work, i had to make 2 separate scripts, one importing IDF from geomeppy, and the other one importing IDF from eppy.modeleditor.

Is there anything i can do to make just 1 script instead of 2?

Thanks in advance.

PS: thank you so much for developing such a powerful package, it's really awesome

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions