using OpenStudio model, how do I get the uuid value of a object-list field?
Developing an app using openstudio modelobject
- Loaded a sample osm file into model
- Traversing the model to extract (.osm file) data
- for an object-list field, able to obtain referred object name.
- Since it is possible that the object name may not be unique, I would like to know the object's uuid rather than its name (from the object-list field) so that I can access the correct object.
Appreciate any help
Are you asking how to get an OpenStudio object's UUID via the OpenStudio SDK?
Boy! You guys are fast.
Yes, the SDK. Not Openstudio app. Sorry for not being clear. I am developing a C# app using OpenStudio.dll (2.9.0) etc. Thank you
I looked at some of the handle utilities. However, could not figure out how to read off the UUID's Here is an example
OS:Construction, {7954b1de-6a1c-40aa-8ff5-ebcc278e204b}, ! Handle 000 Exterior Door, ! Name {fd5f6384-4bd6-4a16-aaf2-e2e57c7ac5e3}, ! Surface Rendering Name {6e535b8c-5f4e-49b4-9c8c-53def4ee5b3e}, ! Layer 1 {83088629-4598-4a88-9e3c-cbedee5e2f96}; ! Layer 2
Reading the Layer 1 & Layer 2 values (using idfObject.getString(4).get()) gives me the names of the material, not the UUID listed here.