openstudiocore/ruby/openstudio/sketchup_plugin/lib/interfaces/InteriorPartitionSurface.rb
# Returns the parent drawing interface according to the input object.

Returns the parent drawing interface according to the input object.
Returns the parent drawing interface according to the input object .
def parent_from_model_object
      Plugin.log(OpenStudio::Trace, "#{current_method_name}")
      parent = nil
      if (@model_object)
        interiorPartitionSurfaceGroup = @model_object.interiorPartitionSurfaceGroup
        if (not interiorPartitionSurfaceGroup.empty?)
          parent = interiorPartitionSurfaceGroup.get.drawing_interface
        end
      end
      return(parent)
    end
def parent_from_model_object Plugin . log ( OpenStudio :: Trace , "#{current_method_name}" ) parent = nil if ( @model_object ) interiorPartitionSurfaceGroup = @model_object . interiorPartitionSurfaceGroup if ( not interiorPartitionSurfaceGroup . empty? ) parent = interiorPartitionSurfaceGroup . get . drawing_interface end end return ( parent ) end
Returns the parent drawing interface according to the input object.
Returns the parent drawing interface according to the input object .