# How can I rotate robtargets around a "custom" axis

**URL:** <https://tech-community.robotics.abb.com/t/how-can-i-rotate-robtargets-around-a-custom-axis/7611>\
**Category:** RobotStudio S4\
**Tags:** rotate-robtarget-vector\
**Created:** [March 7, 2017, 10:02am UTC](https://tech-community.robotics.abb.com/t/how-can-i-rotate-robtargets-around-a-custom-axis/7611 "2017-03-07T10:02:23Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![baldur](https://avatars.discourse-cdn.com/v4/letter/b/87869e/32.png) [@baldur](https://tech-community.robotics.abb.com/u/baldur)\
**Post date:** [March 7, 2017, 10:02am UTC](https://tech-community.robotics.abb.com/t/how-can-i-rotate-robtargets-around-a-custom-axis/7611/1 "2017-03-07T10:02:23Z")

</div>

I have a lot of robtargets definded in a workobject. Some of these targets need to be rotated around an axis that i NOT the x-, y or z axis in my workobject.

So I would like to rotate a robtaget around a vector, where both the robtarget and the vector is definded in the same workobject,

Does anyone know if this is possible without the need to do “a lot” of mathematics 😉

Regards,

Baldur

---

<div class="post-metadata">

**Author:** ![soup](https://dub1.discourse-cdn.com/flex005/user_avatar/tech-community.robotics.abb.com/soup/32/1592_2.png) [@soup](https://tech-community.robotics.abb.com/u/soup)\
**Post date:** [March 7, 2017, 1:47pm UTC](https://tech-community.robotics.abb.com/t/how-can-i-rotate-robtargets-around-a-custom-axis/7611/2 "2017-03-07T13:47:10Z")

</div>

If you’re using RobotStudio – you could create a new work object at the axis you want to rotate around, drag and drop the targets to the new work object, choose No to the "Do you want to reposition the targets? popup, rotate the new work object and the targets follow. Then drag and drop the rotated targets back to a more suitable work object.
