openstudiocore/sketchup_plugin/openstudio/sketchup_plugin/lib/interfaces/SubSurface.rb
# Erases the entity when the input object is deleted, or in preparation for a re-draw.
Erases the entity when the input object is deleted, or in preparation for a re-draw.
Erases the entity when the input object is deleted or in preparation for a re - draw .
def erase_entity
      Plugin.log(OpenStudio::Trace, "#{current_method_name}")
      remove_observers(true)
      if (valid_entity?)
        if containing_entity
          entities = [@entity]
          if @parent
            if parent_face = @parent.entity
              @entity.edges.each do |edge|
                if edge.faces.include?(parent_face)
                  entities << edge
                end
              end
            end
          end
          containing_interface = containing_entity.drawing_interface
          had_observers = containing_interface.remove_observers if containing_interface
          containing_entity.entities.erase_entities(entities)
          containing_interface.add_observers if had_observers
        end
      end
    end
def erase_entity Plugin . log ( OpenStudio :: Trace , "#{current_method_name}" ) remove_observers ( true ) if ( valid_entity? ) if containing_entity entities = [ @entity ] if @parent if parent_face = @parent . entity @entity . edges . each do | edge | if edge . faces . include? ( parent_face ) entities << edge end end end end containing_interface = containing_entity . drawing_interface had_observers = containing_interface . remove_observers if containing_interface containing_entity . entities . erase_entities ( entities ) containing_interface . add_observers if had_observers end end end
Erases the entity when the input object is deleted, or in preparation for a re-draw.
Erases the entity when the input object is deleted or in preparation for a re - draw .