First time here? Check out the Help page!
1 | initial version |
That's a good question, as you point out we have native support to tag some objects. Space Types can be tagged with the standards building type and standards space type. Constructions have a number of tags including the intended surface type and construction type. One key tag we don't have that I would like eventually is the ability to tag internal loads. I'd like to know if a load is an elevator or a computer without having to rely on the name or infer it on some complex logic. Similarly I'd like to know whether a light is task or general lighting, and what kind of technology it uses. Until we have this there are a few options.
A variation on this is that every model object in OpenStudio can have a comment. You can set information in the comment instead of the name. Code is shown below. If you don't start the string with an exclamation point and a space, OpenStudio will add that to the beginning of your string.
my_object.setComment("anything you want") puts my_object.comment # this will return "! anything you want") my_object.setComment("#{my_object.comment}|more info") puts my_object.comment # this will return "! anything you want|more info"
2 | No.2 Revision |
That's a good question, as you point out we have native support to tag some objects. Space Types can be tagged with the standards building type and standards space type. Constructions have a number of tags including the intended surface type and construction type. One key tag we don't have that I would like eventually is the ability to tag internal loads. I'd like to know if a load is an elevator or a computer without having to rely on the name or infer it on some complex logic. Similarly I'd like to know whether a light is task or general lighting, and what kind of technology it uses. Until we have this there are a few options.
(code below)
my_object.setComment("anything you want")
puts my_object.comment # this will return "! anything you want")
my_object.setComment("#{my_object.comment}|more info")
puts my_object.comment # this will return "! anything you want|more 3 | No.3 Revision |
That's a good question, as you point out we have native support to tag some objects. Space Types can be tagged with the standards building type and standards space type. Constructions have a number of tags including the intended surface type and construction type. One key tag we don't have that I would like eventually is the ability to tag internal loads. I'd like to know if a load is an elevator or a computer without having to rely on the name or infer it on some complex logic. Similarly I'd like to know whether a light is task or general lighting, and what kind of technology it uses. Until we have this there are a few options.
(code below)
my_object.setComment("anything you want")
puts my_object.comment # this will return "! anything you want")
want"
my_object.setComment("#{my_object.comment}|more info")
puts my_object.comment # this will return "! anything you want|more info"
4 | No.4 Revision |
That's a good question, as you point out we have native support to tag some objects. Space Types can be tagged with the standards building type and standards space type. Constructions have a number of tags including the intended surface type and construction type. One key tag we don't have that I would like eventually is the ability to tag internal loads. I'd like to know if a load is an elevator or a computer without having to rely on the name or infer it on some using complex logic. Similarly I'd like to know whether a light is task or general lighting, and what kind of technology it uses. Until we have this there are a few options.
(code below)
my_object.setComment("anything you want")
puts my_object.comment # this will return "! anything you want"
my_object.setComment("#{my_object.comment}|more info")
puts my_object.comment # this will return "! anything you want|more info"