openstudiocore/sketchup_plugin/openstudio/sketchup_plugin/lib/interfaces/SubSurface.rb
# Updates the ModelObject with new information from the SketchUp entity.
Updates the ModelObject with new information from the SketchUp entity.
Updates the ModelObject with new information from the SketchUp entity .
def update_model_object
      Plugin.log(OpenStudio::Trace, "#{current_method_name}")
      super  
      if (valid_entity?)
        if (@parent.class == Surface)
          watcher_enabled = disable_watcher
          @model_object.setSurface(@parent.model_object)  
          enable_watcher if watcher_enabled
        end
      end
    end
def update_model_object Plugin . log ( OpenStudio :: Trace , "#{current_method_name}" ) super if ( valid_entity? ) if ( @parent . class == Surface ) watcher_enabled = disable_watcher @model_object . setSurface ( @parent . model_object ) enable_watcher if watcher_enabled end end end
Updates the ModelObject with new information from the SketchUp entity.
Updates the ModelObject with new information from the SketchUp entity .
# PlanarSurface superclass updates the vertices # Parent should already have been updated.