You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tried to use eppy for adding some building blocks. The problem is that as soon as I reach this part of the code which is also used in the document of the "geomeppy" I get an error. I'm talking about this part:
stat = idf.newidfobject(
"HVACTEMPLATE:THERMOSTAT",
Name="Zone Stat",
Constant_Heating_Setpoint=20,
Constant_Cooling_Setpoint=25,)
and the error I get is this:
** Severe ** Duplicate name found. name: "HVACTemplate Any Number". Overwriting existing object.
idf.run(expandobjects=True) didn't solve the problem
Any help is appreciated.
The text was updated successfully, but these errors were encountered:
What does your IDF look like? It looks like you've added two ScheduleTypeLimits objects with the same name, "HVACTemplate Any Number", but can't be sure.
I found the problem and the solution. When eppy or "geomeppy" runs the file, sometimes, it doesn't replace the previous file with the new one. Therefore, it tries to overwrite the previous file which contributes to an error. This may be rather the EnergyPlus problem. Anyways, What I did in my code I just added a line to delete the previous file before "geomeppy" runs the file like this:
import os
os.remove("eplustbl.htm")
os.remove("eplusout.expidf")
Hello all
I tried to use eppy for adding some building blocks. The problem is that as soon as I reach this part of the code which is also used in the document of the "geomeppy" I get an error. I'm talking about this part:
stat = idf.newidfobject(
"HVACTEMPLATE:THERMOSTAT",
Name="Zone Stat",
Constant_Heating_Setpoint=20,
Constant_Cooling_Setpoint=25,)
and the error I get is this:
** Severe ** Duplicate name found. name: "HVACTemplate Any Number". Overwriting existing object.
idf.run(expandobjects=True) didn't solve the problem
Any help is appreciated.
The text was updated successfully, but these errors were encountered: