hi there,
i want to ask if how to activate scale tool with ruby when component is placed. is there snippet that can be used to activate scale tool automatically after component placement?
thanks a lot Miroslav
Examples:
# This is an example of an observer that watches the
# component placement event.
class MyModelObserver < Sketchup::ModelObserver
def onPlaceComponent(instance)
puts "onPlaceComponent: #{instance}"
end
end
# Attach the observer.
Sketchup.active_model.add_observer(MyModelObserver.new)
result = Sketchup.send_action("selectScaleTool:")
thanks , sometimes to find things is too complicated for me. thanks again