# Get data from Vision Component to Properties Editor

**URL:** <https://forum.inductiveautomation.com/t/get-data-from-vision-component-to-properties-editor/12326>\
**Category:** Module Development\
**Created:** [November 3, 2016, 1:47pm UTC](https://forum.inductiveautomation.com/t/get-data-from-vision-component-to-properties-editor/12326 "2016-11-03T13:47:43Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mmacerl](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/mmacerl/32/4024_2.png) [@Mmacerl](https://forum.inductiveautomation.com/u/Mmacerl)\
**Post date:** [November 3, 2016, 1:47pm UTC](https://forum.inductiveautomation.com/t/get-data-from-vision-component-to-properties-editor/12326/1 "2016-11-03T13:47:43Z")

</div>

I have made a component where you can draw rectangles on it. Now I would like to expose coordinates of rectangle in designer’s Properties (under Data) whenever user clicks on the rectangle.  
I know that for vice versa I need to override the property change method but how can I get the coordinates in properties when user clicks on rectangle? Thank you for your help.

---

<div class="post-metadata">

**Author:** ![JimBranKelly1](https://avatars.discourse-cdn.com/v4/letter/j/7feea3/32.png) [@JimBranKelly1](https://forum.inductiveautomation.com/u/JimBranKelly1)\
**Post date:** [January 27, 2017, 1:16am UTC](https://forum.inductiveautomation.com/t/get-data-from-vision-component-to-properties-editor/12326/2 "2017-01-27T01:16:34Z")

</div>

Make properties “selectedX1”, “selectedY1”, “selectedX2”, “selectedY2” under the Data section.  
The component updates these values when user selects a rectangle – selection change event or some such.  
Is this what you are trying to do?

If you solved it, can you post a summary of the code?
