First time here? Check out the Help page!
1 | initial version |
You can just import modeleditor
from eppy
. Here's an example:
from geomeppy import IDF
from eppy import modeleditor
IDF.setiddname(r'C:\EnergyPlusV8-0-0\Energy+.idd')
idf_f = IDF(r'C:\EnergyPlusV8-0-0\ExampleFiles\Minimal.idf')
idf_f.add_block(name='Boring hut',coordinates=[(10,0),(10,10),(0,10),(0,0)],height=3.5)
modeleditor.rename(idf_f,'ZONE','Block Boring hut Storey 0','Block Not so boring hut Storey 0')
idf_f.idfobjects['ZONE']
The output will look like that:
[
ZONE,
Block Not so boring hut Storey 0, !- Name
0.0, !- Direction of Relative North
0.0, !- X Origin
0.0, !- Y Origin
0.0, !- Z Origin
1, !- Type
1, !- Multiplier
autocalculate, !- Ceiling Height
autocalculate, !- Volume
autocalculate, !- Floor Area
, !- Zone Inside Convection Algorithm
, !- Zone Outside Convection Algorithm
Yes; !- Part of Total Floor Area
]