module Microstation::Scan::LineWeight

Public Instance Methods

include_lineweight(weight) click to toggle source
# File lib/microstation/scan/line_weight.rb, line 11
def include_lineweight(weight)
  lineweight_inclusions << weight
end
lineweight_inclusions() click to toggle source
# File lib/microstation/scan/line_weight.rb, line 7
def lineweight_inclusions
  @lineweight_inclusions ||= []
end
reset_lineweights() click to toggle source
# File lib/microstation/scan/line_weight.rb, line 15
def reset_lineweights
  reset_ole_linestyles
  @lineweight_inclusions = []
end
reset_ole_lineweights() click to toggle source
# File lib/microstation/scan/line_weight.rb, line 20
def reset_ole_lineweights
  ole_obj.ExcludeAllLineWeights
end
resolve_lineweight_scans() click to toggle source
# File lib/microstation/scan/line_weight.rb, line 24
def resolve_lineweight_scans
  return unless lineweight_inclusions.size > 0
  reset_ole_lineweights
  lineweight_inclusions.each do |lineweight|
    ole_obj.IncludeLineWeight(lineweight)
  end
end