2

Searching Handles in OpenStudio Window

I am comparing two different .osm files in a text editor to identify which objects have been changed. While Some of these changes are easy to identify - some are not. The comments in the text file are brief and it is hard to tell which HVAC equipment in which zone was changed - it is only referred to in the handle. Is there an easy way to search for a particular handle in the openstudio window, or are those auto-generated and unique to each run?

DW's avatar
843
DW
asked 2015-02-13 09:32:47 -0500
MatthewSteen's avatar
10.1k
MatthewSteen
updated 2015-02-13 10:46:39 -0500
edit flag offensive 0 remove flag close merge delete

Comments

add a comment see more comments

2 Answers

2

We have a measure that we use internally for this purpose. I just posted ReportModelChanges to BCL. In our case we often use measures to create the model in which all of the handles/UUID's are different, making a text editor tough to use. @MatthewSteen's suggestion of looking at the out.idf is one good option, but we wanted something to specifically look at OSM's

While this measure doesn't alter your model, it runs as a "Model" vs. "Reporting" measure since it only needs model inputs vs. model outputs. As a result you can use it in with "Apply Measures Now". The resulting info message has a link to an HTML file that looks something like what is shown below. There are three sections.

  1. Objects Only In Model
  2. Objects Only In Comparison Model
  3. Objects In Both Models With Differences

Below is a screenshot of the third section. Items where there is a difference are highlighted in red.

image description

David Goldwasser's avatar
20.4k
David Goldwasser
answered 2015-02-13 11:23:34 -0500
edit flag offensive 0 remove flag delete link

Comments

add a comment see more comments
1

The OS handles are UUIDs so unless the OSMs have the same history, such as baseline and proposed models, the handles will be different. I find it easier to compare the out.idf files which are found in the OSM file directory:

osm file name folder > run > EnergyPlusPreProcess

I've used the Compare plugin for Notepad++ but it's buggy, so I recommend WinMerge. If you are searching the OSM to manually delete an object that's causing an issue you will need to search by the name first and then by the handle to find all of the instances. However, this should be done very carefully.

MatthewSteen's avatar
10.1k
MatthewSteen
answered 2015-02-13 10:53:58 -0500, updated 2015-02-13 11:11:31 -0500
edit flag offensive 0 remove flag delete link

Comments

add a comment see more comments