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

Creating handles for OSM objects

asked 10 years ago

hodor's avatar

updated 9 years ago

There are times when I have had to copy or modify objects in my OSM file by hand. I get that each object has a handle and that the objects refer to each other by handle instead of names. If I copy an object I usually just change a number or two in the handle to create a new one, is this ok? Is there a better way to create a handle for an OSM object?

Preview: (hide)

1 Answer

Sort by » oldest newest most voted
4

answered 10 years ago

updated 10 years ago

Hey @hodor, first of all sorry about that new feature in OpenStudio 1.7.0, we will get to it eventually ;-)

Secondly, you shouldn't be modifying OSM files in a text editor unless you really have to. However, if you really have to, creating handles by changing a few digits is not a good idea. The handles are supposed to be Universally unique identifiers, changing a few digits is likely to end up generating conflicting handles at some point. There are several web tools that will generate good UUIDs for you. Just create a new version 4 handle for each object and you will be fine.

Preview: (hide)
link

Comments

Thanks @macumber that is great!

hodor's avatar hodor  ( 10 years ago )

Do I want a version 1 or version 4 UUID?

hodor's avatar hodor  ( 10 years ago )

You want version 4

macumber's avatar macumber  ( 10 years ago )
3

I just realized that one of my existing Notepad++ plugins, ToolBucket, can generate GUIDs right in Notepad++.

Julien Marrec's avatar Julien Marrec  ( 10 years ago )

Cool nice find @Julien Marrec

macumber's avatar macumber  ( 10 years ago )

Your Answer

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

Add Answer

Training Workshops

Careers

Question Tools

1 follower

Stats

Asked: 10 years ago

Seen: 418 times

Last updated: Apr 03 '15