Method: Autocad::Drawing#get_select_text_containing
- Defined in:
- lib/autocad/drawing.rb
#get_select_text_containing(str) ⇒ SelectionSetAdapter
Get a selection set containing text with the specified string
561 562 563 564 565 566 567 568 569 570 571 |
# File 'lib/autocad/drawing.rb', line 561 def get_select_text_containing(str) name = "text_containing_#{str}" varname = "@#{name}".tr("*", "_") ss = get_selection_set(name) ss.delete if ss ss = create_selection_set(name) do |ss| ss.filter_text_containing(str) end instance_variable_set(varname, ss) ss end |