Module: Microstation::Scan::Type

Included in:
Criteria
Defined in:
lib/microstation/scan/type.rb

Instance Method Summary collapse

Instance Method Details

#include_cell_headerObject



87
88
89
# File 'lib/microstation/scan/type.rb', line 87

def include_cell_header
  self.include_type(::Microstation::MSD::MsdElementTypeCellHeader)
end

#include_cellsObject



95
96
97
98
# File 'lib/microstation/scan/type.rb', line 95

def include_cells
  include_cell_header
  include_shared_cell
end

#include_dimensionsObject



100
101
102
# File 'lib/microstation/scan/type.rb', line 100

def include_dimensions
  self.include_type(::Microstation::MSD::MsdElementTypeDimension)
end

#include_linesObject



125
126
127
# File 'lib/microstation/scan/type.rb', line 125

def include_lines
  self.include_type ::Microstation::MSD::MsdElementTypeLine
end

#include_shared_cellObject



91
92
93
# File 'lib/microstation/scan/type.rb', line 91

def include_shared_cell
  self.include_type(::Microstation::MSD::MsdElementTypeSharedCell)
end

#include_solidsObject



121
122
123
# File 'lib/microstation/scan/type.rb', line 121

def include_solids
  self.include_type ::Microstation::MSD::MsdElementTypeSolid
end

#include_tagsObject



108
109
110
# File 'lib/microstation/scan/type.rb', line 108

def include_tags
  self.include_type ::Microstation::MSD::MsdElementTypeTag
end

#include_textObject



104
105
106
# File 'lib/microstation/scan/type.rb', line 104

def include_text
  self.include_type(::Microstation::MSD::MsdElementTypeText)
end

#include_text_nodesObject



112
113
114
# File 'lib/microstation/scan/type.rb', line 112

def include_text_nodes
  self.include_type ::Microstation::MSD::MsdElementTypeTextNode
end

#include_textualObject



116
117
118
119
# File 'lib/microstation/scan/type.rb', line 116

def include_textual
  include_text
  include_text_nodes
end

#include_type(type) ⇒ Object



75
76
77
# File 'lib/microstation/scan/type.rb', line 75

def include_type(type)
  type_inclusions << type
end

#reset_ole_typesObject



71
72
73
# File 'lib/microstation/scan/type.rb', line 71

def reset_ole_types
  ole_obj.ExcludeAllTypes
end

#reset_typesObject



66
67
68
69
# File 'lib/microstation/scan/type.rb', line 66

def reset_types
  reset_ole_types
  @type_inclusions = []
end

#resolve_type_scansObject



79
80
81
82
83
84
85
# File 'lib/microstation/scan/type.rb', line 79

def resolve_type_scans
  return unless type_inclusions.size > 0
  reset_ole_types
  type_inclusions.each do |type|
    ole_obj.IncludeType(type)
  end
end

#type_inclusionsObject

MsdElementTypeCellLibraryHeader MsdElementTypeCellHeader MsdElementTypeLine MsdElementTypeLineString MsdElementTypeGroupData MsdElementTypeShape MsdElementTypeTextNode MsdElementTypeDigSetData MsdElementTypeDesignFileHeader MsdElementTypeLevelSymbology MsdElementTypeCurve MsdElementTypeComplexString MsdElementTypeConic MsdElementTypeComplexShape MsdElementTypeEllipse MsdElementTypeArc MsdElementTypeText MsdElementTypeSurface MsdElementTypeSolid MsdElementTypeBsplinePole MsdElementTypePointString MsdElementTypeCone MsdElementTypeBsplineSurface MsdElementTypeBsplineBoundary MsdElementTypeBsplineKnot MsdElementTypeBsplineCurve MsdElementTypeBsplineWeight MsdElementTypeDimension MsdElementTypeSharedCellDefinition MsdElementTypeSharedCell MsdElementTypeMultiLine MsdElementTypeTag MsdElementTypeDgnStoreComponent MsdElementTypeDgnStoreHeader MsdElementType44 MsdElementTypeMicroStation MsdElementTypeRasterHeader MsdElementTypeRasterComponent MsdElementTypeRasterReference MsdElementTypeRasterReferenceComponent MsdElementTypeRasterFrame MsdElementTypeTableEntry MsdElementTypeTable MsdElementTypeViewGroup MsdElementTypeView MsdElementTypeLevelMask MsdElementTypeReferenceAttachment MsdElementTypeMatrixHeader MsdElementTypeMatrixIntegerData MsdElementTypeMatrixDoubleData MsdElementTypeMeshHeader MsdElementTypeReferenceOverride MsdElementTypeNamedGroupHeader MsdElementTypeNamedGroupComponent



62
63
64
# File 'lib/microstation/scan/type.rb', line 62

def type_inclusions
  @type_inclusions ||= []
end