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

Revision history [back]

click to hide/show revision 1
initial version

The .get method called on boost object works fine: here is what I was running to test that in SketchUp's Ruby console:

new_lightshelf =subsurfaces[11].addDaylightingDeviceShelf() 
#<OpenStudio::Model::OptionalDaylightingDeviceShelf:0x0001c817a91b78>
new_lightshelf.empty?
false
aa=new_lightshelf.get
OS:DaylightingDevice:Shelf,
  {d3e8c95e-9f08-4a58-acf4-c2b79d7df8c4}, !- Handle
  Daylighting Device Shelf 1,             !- Name
  {72f98f0b-6b8a-4ba6-920d-83994f4287e7}; !- Window Name
aa.class
OpenStudio::Model::DaylightingDeviceShelf
aa.name
Daylighting Device Shelf 1

The .get method called on boost object works fine: here is what I was running to test that in SketchUp's Ruby console:

sketchup_model = Sketchup.active_model
model = sketchup_model.model_interface.openstudio_model


new_lightshelf =subsurfaces[11].addDaylightingDeviceShelf() 
#<OpenStudio::Model::OptionalDaylightingDeviceShelf:0x0001c817a91b78>
new_lightshelf.empty?
false
aa=new_lightshelf.get
OS:DaylightingDevice:Shelf,
  {d3e8c95e-9f08-4a58-acf4-c2b79d7df8c4}, !- Handle
  Daylighting Device Shelf 1,             !- Name
  {72f98f0b-6b8a-4ba6-920d-83994f4287e7}; !- Window Name
aa.class
OpenStudio::Model::DaylightingDeviceShelf
aa.name
Daylighting Device Shelf 1