openstudiocore/sketchup_plugin/openstudio/sketchup_plugin/lib/interfaces/SurfaceGroup.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?)
        watcher_enabled = disable_watcher
        transformation = Geom::transformation_to_openstudio(self.coordinate_transformation)
        if not @model_object.setTransformation(transformation)
          puts "Surface group cannot be rotated about any axis other than z"
          update_entity(false)
        end
        update_child_model_objects
        enable_watcher if watcher_enabled
      end
    end
def update_model_object Plugin . log ( OpenStudio :: Trace , "#{current_method_name}" ) super if ( valid_entity? ) watcher_enabled = disable_watcher transformation = Geom :: transformation_to_openstudio ( self . coordinate_transformation ) if not @model_object . setTransformation ( transformation ) puts "Surface group cannot be rotated about any axis other than z" update_entity ( false ) end update_child_model_objects enable_watcher if watcher_enabled end end
Updates the ModelObject with new information from the SketchUp entity.
Updates the ModelObject with new information from the SketchUp entity .
# set the transfomation #puts "update_model_object, self.coordinate_transformation = #{self.coordinate_transformation.to_a.join(',')}" #puts "update_model_object, @entity.transformation = #{@entity.transformation.to_a.join(',')}" #puts "update_model_object, transformation = #{transformation.to_a.join(',')}" # reject the changes and go back to ModelObject's origin and rotation # All enclosed entities must be transformed. #puts "********************"