# On Rotate observer?

**URL:** <https://forums.sketchup.com/t/on-rotate-observer/11254>\
**Category:** Ruby API\
**Created:** [May 14, 2015, 6:56pm UTC](https://forums.sketchup.com/t/on-rotate-observer/11254 "2015-05-14T18:56:07Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![skapp](https://avatars.discourse-cdn.com/v4/letter/s/b5e925/32.png) [@skapp](https://forums.sketchup.com/u/skapp)\
**Post date:** [May 14, 2015, 6:56pm UTC](https://forums.sketchup.com/t/on-rotate-observer/11254/1 "2015-05-14T18:56:07Z")

</div>

Is there an observer in the ruby api for “onRotate”? On placement in a model my code calls the rotate tool. I am hoping to call the selection tool after the rotate. Is there anything in the api for this?

```
class MyModelObserver < Sketchup::ModelObserver

	def onPlaceComponent(instance)		
		Sketchup.send_action "selectRotateTool:"
	end

end

```

---

<div class="post-metadata">

**Author:** ![DanRathbun](https://sea2.discourse-cdn.com/sketchup/user_avatar/forums.sketchup.com/danrathbun/32/500_2.png) [@DanRathbun](https://forums.sketchup.com/u/DanRathbun)\
**Post date:** [May 14, 2015, 7:20pm UTC](https://forums.sketchup.com/t/on-rotate-observer/11254/2 "2015-05-14T19:20:35Z")

</div>

You don’t actually need to call the rotate tool. It is built-in to place component.

Just after you place the component, … (the **`MoveTool`** is activated,)  
… hover over the newly place compoennt and you’ll see rotate “spots” appear. (look like little red crosses.) Put the mouse cursor over one and you’ll see the rotate protractor popup.

There is the **`ToolsObserver`** so you can watch what SketchUp is doing.

If you must, you might attach an **`EntityObserver`** to the instance placed in the callback you show above.
