The only I’ve tried this in the past, using the API call:
Sketchup::Model.html#place_component()
It cannot easily be used inside a tool, because it changes the active tool (so your tool will be deactivated.)
See this thread where you should have posted your question, instead of hijacking this topic: