Class: Autocad::ExternalReference

Inherits:
BlockReference show all
Defined in:
lib/autocad/block_reference.rb

Instance Attribute Summary

Attributes inherited from Element

#acad_type, #app, #ole_obj, #original

Instance Method Summary collapse

Methods inherited from BlockReference

#attribute_hash, #attributes, #block_reference?, #dynamic?, #each, #explode, #get_block_extents, #has_attributes?, #insertion_point, #layout?, #name, #scale_by, #x_effective_scale_factor, #x_scale_factor, #y_effective_scale_factor, #y_scale_factor, #z_effective_scale_factor, #z_scale_factor

Methods inherited from Element

#[], #app_ole_obj, #clone, convert_item, #delete, #do_update, #each_complex, #get_property_handler, #in_cell?, #initialize, #method_missing, #move, #move_ole, #move_x, #move_y, #ole_cell, ole_object?, #property_handler, #read_ole, #redraw, #update, #updated?, #write_ole

Methods included from ElementTrait

#autocad_type, #block_reference?, #bounds, #cell?, #def, #drawing, #explode, #graphical?, #has_tags?, #highlight, #id_from_record, #line?, #model, #parent, #pviewport?, #select, #text?, #to_ole, #visible?

Constructor Details

This class inherits a constructor from Autocad::Element

Dynamic Method Handling

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

Instance Method Details

#external?Boolean

Returns:

  • (Boolean)


112
113
114
# File 'lib/autocad/block_reference.rb', line 112

def external?
  true
end

#ins_unitsObject



121
122
123
# File 'lib/autocad/block_reference.rb', line 121

def ins_units
  @ole_obj.InsUnits
end

#ins_units_factorObject



125
126
127
# File 'lib/autocad/block_reference.rb', line 125

def ins_units_factor
  @ole_obj.InsUnitsFactor
end

#inspectObject



129
130
131
# File 'lib/autocad/block_reference.rb', line 129

def inspect
  "<ExternalReference: name: #{name}>"
end

#pathObject



117
118
119
# File 'lib/autocad/block_reference.rb', line 117

def path
  Pathname(ole_obj.Path)
end