# Template: How to read x, y, height and width from a template component at runtime

**URL:** <https://forum.inductiveautomation.com/t/template-how-to-read-x-y-height-and-width-from-a-template-component-at-runtime/62961>\
**Category:** Ignition\
**Tags:** ignition81\
**Created:** [August 12, 2022, 4:37pm UTC](https://forum.inductiveautomation.com/t/template-how-to-read-x-y-height-and-width-from-a-template-component-at-runtime/62961 "2022-08-12T16:37:09Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![witman](https://avatars.discourse-cdn.com/v4/letter/w/d2c977/32.png) [@witman](https://forum.inductiveautomation.com/u/witman)\
**Post date:** [August 12, 2022, 6:17pm UTC](https://forum.inductiveautomation.com/t/template-how-to-read-x-y-height-and-width-from-a-template-component-at-runtime/62961/3 "2022-08-12T18:17:30Z")

</div>

I'm not sure I fully understand what you're aiming for here, but, if you are using Vision, this thread covering template designed size, instance size, and runtime size may help:

> [@Get template instance size before runtime scaling](https://forum.inductiveautomation.com/t/get-template-instance-size-before-runtime-scaling/20835):
>
> Within a template, we can get template original size via Rectangle.relWidth on a rectangle the same size as the template with layout anchored to top, bottom, and sides. We can get template runtime size into internal template properties via the following expression bindings: runscript('self.height', 50) runscript('self.width', 50) What we’d like to get is template instance size in Designer. In other words, if original template was 200x200 and we stretch it to 300x150 in Designer, we want to ge…

---

_[View the full topic](https://forum.inductiveautomation.com/t/template-how-to-read-x-y-height-and-width-from-a-template-component-at-runtime/62961)._
