Class: Microstation::Model

Inherits:
Object
  • Object
show all
Includes:
ModelTrait
Defined in:
lib/microstation/model.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from ModelTrait

#activate, #active?, #add_element, #change_text_suffix, #find_by_id, #get_matching_text, #get_selected_elements, #get_selected_text, #get_tagsets_in_model_hash, #get_tagsets_in_model_hash_old, #locked?, #name, #readonly?, #scan_model, #scan_tags_filtered, #select_element, #select_tagset_instances, #tags_to_hash, #to_s, #unselect_element

Methods included from ScanTrait

#cells_criteria, #create_scanner, #graphics_criteria, #lines_criteria, #scan, #scan_cell_with_name, #scan_cells, #scan_graphical, #scan_lines, #scan_tags, #scan_text, #tags_criteria, #text_criteria

Methods included from Graphics

#line, #line_from_pts

Constructor Details

#initialize(app, drawing, ole) ⇒ Model

Returns a new instance of Model.



30
31
32
33
34
# File 'lib/microstation/model.rb', line 30

def initialize(app, drawing, ole)
  @app = app
  @drawing = drawing
  @ole_obj = ole
end

Instance Attribute Details

#appObject (readonly)

Returns the value of attribute app.



28
29
30
# File 'lib/microstation/model.rb', line 28

def app
  @app
end

#drawingObject (readonly)

Returns the value of attribute drawing.



28
29
30
# File 'lib/microstation/model.rb', line 28

def drawing
  @drawing
end

#ole_objObject (readonly)

Returns the value of attribute ole_obj.



28
29
30
# File 'lib/microstation/model.rb', line 28

def ole_obj
  @ole_obj
end