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

Searching Handles in OpenStudio Window

asked 2015-02-13 09:32:47 -0500

DW's avatar

updated 2015-02-13 10:46:39 -0500

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?

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
2

answered 2015-02-13 11:23:34 -0500

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

edit flag offensive delete link more
1

answered 2015-02-13 10:53:58 -0500

updated 2015-02-13 11:11:31 -0500

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.

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

Careers

Question Tools

2 followers

Stats

Asked: 2015-02-13 09:32:47 -0500

Seen: 252 times

Last updated: Feb 13 '15