# Rotating a grouped Image with label

**URL:** <https://forum.inductiveautomation.com/t/rotating-a-grouped-image-with-label/7192>\
**Category:** Ignition\
**Created:** [September 4, 2013, 3:36pm UTC](https://forum.inductiveautomation.com/t/rotating-a-grouped-image-with-label/7192 "2013-09-04T15:36:25Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![drewdin](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/drewdin/32/3363_2.png) [@drewdin](https://forum.inductiveautomation.com/u/drewdin)\
**Post date:** [September 4, 2013, 3:36pm UTC](https://forum.inductiveautomation.com/t/rotating-a-grouped-image-with-label/7192/1 "2013-09-04T15:36:25Z")

</div>

Hi Guys,

I’m trying to rotate a HOA Valve, its a standard image and has a label that changes based on HAND OFF AUTO. For a P&ID i wanted to use the same grouped valve I created but what happens when i rotate the image is that the text does not rotate with it.

When i do rotate the text, it is out of place and needs to be modified. I was hoping to bind some properties to the rotation of the image and label but how can I keep them aligned up when they rotate?

Has anyone else tried this or something similar? Thanks

---

<div class="post-metadata">

**Author:** ![drewdin](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/drewdin/32/3363_2.png) [@drewdin](https://forum.inductiveautomation.com/u/drewdin)\
**Post date:** [September 4, 2013, 5:36pm UTC](https://forum.inductiveautomation.com/t/rotating-a-grouped-image-with-label/7192/2 "2013-09-04T17:36:49Z")

</div>

Is there a way to control the x,y coordinates of the image and text? any suggestions?

---

<div class="post-metadata">

**Author:** ![Ron.Lor](https://avatars.discourse-cdn.com/v4/letter/r/f17d59/32.png) [@Ron.Lor](https://forum.inductiveautomation.com/u/Ron.Lor)\
**Post date:** [September 4, 2013, 11:24pm UTC](https://forum.inductiveautomation.com/t/rotating-a-grouped-image-with-label/7192/3 "2013-09-04T23:24:38Z")

</div>

Unfortunately, you cannot rotate grouped components. One solution I can offer you is to make a template that has each of the four positions that the valve could be in. Then have a custom property on the template that tells which one of the positions to be visible.

To control the x and y coordinates of an image or text, you can use the system.gui.moveComponent() function. If you need more information, you can check out the user manual.
