Class: Microstation::Line

Inherits:
Element
  • Object
show all
Defined in:
lib/microstation/line.rb

Instance Attribute Summary

Attributes inherited from Element

#app, #ole_obj, #original

Instance Method Summary collapse

Methods inherited from Element

#[], #app_ole_obj, convert_item, #do_update, #each, #each_cell, #each_complex, #get_property_handler, #in_cell?, #initialize, #method_missing, #ole_cell, ole_object?, #property_handler, #read_ole, #redraw, #update, #updated?, #write_ole

Methods included from ElementTrait

#cell?, #complex?, #graphical?, #has_tags?, #id_from_record, #line?, #microstation_id, #microstation_type, #model, #parent, #select, #text?, #text_node?, #textual?, #to_ole

Constructor Details

This class inherits a constructor from Microstation::Element

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Microstation::Element

Instance Method Details

#lengthObject



5
6
7
# File 'lib/microstation/line.rb', line 5

def length
  ole_obj.Length
end

#verticesObject



9
10
11
12
13
# File 'lib/microstation/line.rb', line 9

def vertices
  ole_obj.AsVertexList
  n = ole_obj.VerticesCount
  ole_obj.GetVertices
end