Method: Autocad::Drawing#create_selection_set

Defined in:
lib/autocad/drawing.rb

#create_selection_set(name) {|SelectionSetAdapter| ... } ⇒ SelectionSetAdapter

Create a new selection set in the drawing

Examples:

Create a selection set with a filter

create_selection_set("walls") do |ss|
  ss.filter.layer("WALLS").and.block_reference
end

Parameters:

  • name (String)

    The name for the selection set

Yields:

Returns:



61
62
63
64
65
# File 'lib/autocad/drawing.rb', line 61

def create_selection_set(name)
  ss = SelectionSet.new(name)
  yield ss if block_given?
  SelectionSetAdapter.new(self, ss)
end