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

Revision history [back]

click to hide/show revision 1
initial version

built in method to merge idfs with eppy?

I've got a script that does various things with idf file snippets and ends up with a few distinct idf objects. Does anyone have a suggestion on simple ways to merge/copy/concatenate one into the other? I could always just convert them to text and do it that way, but I was hoping for something more eppy-ish.

I'm aware of the copyidfobjects method, but I'm hoping for something that doesn't require looping through every object.

built in method to merge idfs with eppy?

I've got a script that does various things with idf file snippets and ends up with a few distinct idf objects. Does anyone have a suggestion on simple ways to merge/copy/concatenate one into the other? I could always just convert them to text and do it that way, but I was hoping for something more eppy-ish.

I'm aware of the copyidfobjects method, but I'm hoping for something that doesn't require looping through every object.

For reference, I've got a model split into idf file chunks (because they are part of a larger workflow and coming from various places) such as main file with geometry, envelope, hvac, internal gains, outputs, etc. Then I've loaded each of these files individually with eppy and made various modifications (choosing the correct envelope, mapping the hvac system to the relevant zones, etc). So now I'm at the end of the script and have 6 or so objects sitting in memory that I'd like to combine into a single idf file for simulation.

built in method to merge idfs with eppy?

I've got a script that does various things with idf file snippets and ends up with a few distinct idf objects. Does anyone have a suggestion on simple ways to merge/copy/concatenate one into the other? I could always just convert them to text and do it that way, but I was hoping for something more eppy-ish.

I'm aware of the copyidfobjects method, but I'm hoping for something that doesn't require looping through every object.

For reference, I've got a model split into idf file chunks (because they are part of a larger workflow and coming from various places) such as main file with geometry, envelope, hvac, internal gains, outputs, etc. Then I've loaded each of these files individually with eppy and made various modifications (choosing the correct envelope, mapping the hvac system to the relevant zones, etc). So now I'm at the end of the script and have 6 or so objects sitting in memory that I'd like to combine into a single idf file for simulation.

as a simple example:

idf1 = IDF(model_part_1.idf) idf1 = IDF(model_part_1.idf)

fancy stuff to alter the above

I'm hoping for something on the order of

idf_all = idf1.idfconcatenate(idf2)

idf_all.idfname = "model_complete.idf" idf_all.save()

built in method to merge idfs with eppy?

I've got a script that does various things with idf file snippets and ends up with a few distinct idf objects. Does anyone have a suggestion on simple ways to merge/copy/concatenate one into the other? I could always just convert them to text and do it that way, but I was hoping for something more eppy-ish.

I'm aware of the copyidfobjects method, but I'm hoping for something that doesn't require looping through every object.

For reference, I've got a model split into idf file chunks (because they are part of a larger workflow and coming from various places) such as main file with geometry, envelope, hvac, internal gains, outputs, etc. Then I've loaded each of these files individually with eppy and made various modifications (choosing the correct envelope, mapping the hvac system to the relevant zones, etc). So now I'm at the end of the script and have 6 or so objects sitting in memory that I'd like to combine into a single idf file for simulation.

as a simple example:

idf1 = IDF(model_part_1.idf) idf1 = IDF(model_part_1.idf)

fancy stuff to alter the above

I'm hoping for something on the order of

idf_all = idf1.idfconcatenate(idf2)

idf_all.idfname = "model_complete.idf" idf_all.save()

(sorry, having some browser issues with formatting, will fix soon)

built in method to merge idfs with eppy?

I've got a script that does various things with idf file snippets and ends up with a few distinct idf objects. Does anyone have a suggestion on simple ways to merge/copy/concatenate one into the other? I could always just convert them to text and do it that way, but I was hoping for something more eppy-ish.

I'm aware of the copyidfobjects method, but I'm hoping for something that doesn't require looping through every object.

For reference, I've got a model split into idf file chunks (because they are part of a larger workflow and coming from various places) such as main file with geometry, envelope, hvac, internal gains, outputs, etc. Then I've loaded each of these files individually with eppy and made various modifications (choosing the correct envelope, mapping the hvac system to the relevant zones, etc). So now I'm at the end of the script and have 6 or so objects sitting in memory that I'd like to combine into a single idf file for simulation.

as a simple example:

idf1 = IDF(model_part_1.idf)
idf1 = IDF(model_part_1.idf)

IDF(model_part_1.idf) # fancy stuff to alter the above

above # I'm hoping for something on the order of

of idf_all = idf1.idfconcatenate(idf2)

idf1.idfconcatenate(idf2) idf_all.idfname = "model_complete.idf" idf_all.save()

(sorry, having some browser issues with formatting, will fix soon)

idf_all.save()

built in method to merge idfs with eppy?

I've got a script that does various things with idf file snippets and ends up with a few distinct idf objects. Does anyone have a suggestion on simple ways to merge/copy/concatenate one into the other? I could always just convert them to text and do it that way, but I was hoping for something more eppy-ish.

I'm aware of the copyidfobjects method, but I'm hoping for something that doesn't require looping through every object.

For reference, I've got a model split into idf file chunks (because they are part of a larger workflow and coming from various places) such as main file with geometry, envelope, hvac, internal gains, outputs, etc. Then I've loaded each of these files individually with eppy and made various modifications (choosing the correct envelope, mapping the hvac system to the relevant zones, etc). So now I'm at the end of the script and have 6 or so objects sitting in memory that I'd like to combine into a single idf file for simulation.

as a simple example:

idf1 = IDF(model_part_1.idf)
idf1 = IDF(model_part_1.idf)

# fancy stuff to alter the above

# I'm hoping for something on the order of
 idf_all = idf1.idfconcatenate(idf2)

idf_all.idfname = "model_complete.idf"
idf_all.save()