# Get position of component within group

**URL:** <https://forum.inductiveautomation.com/t/get-position-of-component-within-group/20085>\
**Category:** Ignition\
**Tags:** python, scripting\
**Created:** [October 11, 2018, 1:27pm UTC](https://forum.inductiveautomation.com/t/get-position-of-component-within-group/20085 "2018-10-11T13:27:51Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![vec](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/vec/32/30636_2.png) [@vec](https://forum.inductiveautomation.com/u/vec)\
**Post date:** [May 21, 2020, 2:59pm UTC](https://forum.inductiveautomation.com/t/get-position-of-component-within-group/20085/7 "2020-05-21T14:59:37Z")

</div>

For what it is worth,  
if you try iterating through .getComponents() on the root container it will return “PathBasedVisionShape(MyComponent)”

If you use .getBoundingRect() on the component it returns .x,.y,.w & .h  
See this post on PathBasedVisionShape mouse click  
[PathBasedVisionShape](http://forum.inductiveautomation.com/t/is-there-a-way-to-allow-mouse-clicks-to-pass-to-object-beneath/17093/2)

---

_[View the full topic](https://forum.inductiveautomation.com/t/get-position-of-component-within-group/20085)._
