I just said this with another more important reason …
I will agree a Sketchup::ComponentDefintion#place_with_mouse() block form method would be COOL!
Right now it’s a rigmarole dealing with the instance after placement. Usually we have to use a temporary definition observer with an onComponentInstanceAdded callback.
Like in this example…
[code] undoable place_component() "MoveTool" clone
It would be nifty to do something like the following but without having to use an observer:
this_defn.place_with_mouse(true) {|i|
# code to perform on instance i
# after each placement if repeat arg is true:
i.add_attribute("MyDictionary","SomeProperty",some_value)
}