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

Merge two OpenStudio files

asked 2015-03-26 05:19:44 -0600

I've created an osm file from Honeybee, and later on I realized I forgot a detached space. I created a second .osm file for this space.

What's the best way to integrate my second .osm file in the first one, without duplicating schedules and constructions etc.? I just want the geometry.

edit retag flag offensive close merge delete

4 Answers

Sort by » oldest newest most voted

answered 2015-03-26 05:48:37 -0600

updated 2015-03-26 05:50:59 -0600

It took me some of trial an error to end up with the desired result (instead of wiping out the entire OSM1 and replacing it with OSM2), so here's how to do it.

Let's call the main OSM file OSM_1 and the second (detached space) OSM_2.

1.Copy file OSM_1 and rename to OSM_Merged. The Merging process doesn't create another file, so don't forget this step!

2.Open sketchup without loading an osm file (or create an empty one)

3.Go to Extensions > OpenStudio User Script > Experimental workflow > Import OSM File as sketchup groups. Load OSM_2.

Import OSM File as Sketchup group

You now see the content of OSM_2 in your workspace

OSM_2 loaded as sketchup group

4.Select the space

5.Go to Extensions > OpenStudio User Script > Experimental workflow > "Merge Sketchup groups to OSM in background". Select OSM_Merged as a destination file.

Merge Sketchup Group to OSM in background

6.A window pops-up asking if you only want to merge the selected space (Make sure you didn't skip step 4!). Answer "TRUE"

Merge only selected space - TRUE - Notice that my space is selected

7.Close sketchup, reopen it and load OSM_Merged, et voilà!

Merged OSM file

edit flag offensive delete link more


Thanks @Julien Marrec we want to build special tools eventually to help with merging OSM files as this is needed for iterative workflows where you are making geometry changes in another tool

macumber's avatar macumber  ( 2015-03-26 09:58:01 -0600 )edit

@Julien Marrec, I tried the method, it works well except that my VRF systems all lost...It seems that other systems such as VAV could be kept in the merged file. Do you know the reason?

Yan's avatar Yan  ( 2015-07-15 14:57:04 -0600 )edit

I have trouble seeing why some systems would stay and others would disappear.... Are you sure you actually didn't lose all the systems in your OSM_2 (following my nomenclature above)?

Julien Marrec's avatar Julien Marrec  ( 2015-07-17 02:21:00 -0600 )edit

Sorry, it is my fault, I miss one step ....

Yan's avatar Yan  ( 2015-07-17 07:58:49 -0600 )edit

Glad you got it working!

Julien Marrec's avatar Julien Marrec  ( 2015-07-17 08:30:23 -0600 )edit

answered 2016-12-01 11:27:49 -0600

nathan.vader's avatar

The above process worked for me. Here is a video that explains a little more about the sketchup group to OS workflow.

edit flag offensive delete link more


+1 for vader. Real last name or not.

__AmirRoth__'s avatar __AmirRoth__  ( 2016-12-01 13:21:48 -0600 )edit

answered 2016-06-18 13:23:44 -0600

updated 2016-06-20 12:51:46 -0600

There is an even simpler solution to merging building geometries:

Open Sketchup twice:

  • First for your OSM-file No1
  • Second for your OSM file No 2

image description

Now apply COPY to the desired OpenStudio object (space, zone) in Sketchup#1. Then apply PASTE in PLACE in Sketchup#2.

image description

Now you have the desired additional space in your model (in Sketchup#2) and you only need to take care of adjacent surfaces (intersections, surface matching).

In the example displayed it only takes a simple move command (m) to get the spaces adjacent and to adjust the window at the west side wall.

image description


(In this example there were no duplicate names)

edit flag offensive delete link more

answered 2017-10-09 18:21:05 -0600

DWhitsett's avatar

What happened to the Experimental Workflow Scripts in OS v 2.2?

I have transferred previous versions of these into my 2.2 OS plugin and a couple of them run, but not the most useful. I found these tools to be the most effective way to create geometry. Are there plans to bring them back?

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



Asked: 2015-03-26 05:19:44 -0600

Seen: 1,169 times

Last updated: Jun 20 '16