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

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

asked 2016-01-14 11:30:12 -0600

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

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
5

answered 2016-01-14 12:28:55 -0600

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.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

 

Question Tools

1 follower

Stats

Asked: 2016-01-14 11:30:12 -0600

Seen: 148 times

Last updated: Jan 14 '16