First time here? Check our help page!
4

Can I use the OpenStudio API to copy an object and all children objects from one model to another?

For example I want to copy a ScheduleRuleset and all the dependent schedules from one model to another. How can I do this?

Julien Marrec's avatar
29.7k
Julien Marrec
asked 2016-01-14 11:30:12 -0500
edit flag offensive 0 remove flag close merge delete

Comments

add a comment see more comments

1 Answer

5

The ModelObject::clone method takes an optional Model as input. If a different model is provided, then the model object is copied into the other model along with all children.

macumber's avatar
12k
macumber
answered 2016-01-14 12:28:55 -0500
edit flag offensive 0 remove flag delete link

Comments

add a comment see more comments