# \[BUG\] system.gui.transform on line shape ghosts it

**URL:** <https://forum.inductiveautomation.com/t/bug-system-gui-transform-on-line-shape-ghosts-it/35280>\
**Category:** Ignition\
**Tags:** ignition79, vision\
**Created:** [June 3, 2020, 7:48am UTC](https://forum.inductiveautomation.com/t/bug-system-gui-transform-on-line-shape-ghosts-it/35280 "2020-06-03T07:48:57Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![nminchin](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/nminchin/32/6911_2.png) [@nminchin](https://forum.inductiveautomation.com/u/nminchin)\
**Post date:** [June 3, 2020, 7:48am UTC](https://forum.inductiveautomation.com/t/bug-system-gui-transform-on-line-shape-ghosts-it/35280/1 "2020-06-03T07:48:57Z")

</div>

v7.9.5

I found a bug, trying to transform the position of a line shape to a new x position. Doing the exact same thing as below on a rectangle (for example) works as expected.

I’m testing an idea, and trying to transform the selected large line in the screenshot, by moving it along the x axis within the Template bounds, based on a Value custom property.

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/2X/2/22e9de192d7eb0fcf415390bd7f768c101e0373c.png)

This is what should happen (transform applied to rectangle without stroke), after changing the Value custom property:  
 ![transform on line 3 - working](https://us1.discourse-cdn.com/inductiveautomation/original/2X/4/4faac822a5b521407a455d352b9da2172302e6a0.gif)  
This is what happens (transform applied to a line shape), the line just disappears:  
 ![transform on line 2](https://us1.discourse-cdn.com/inductiveautomation/original/2X/2/29719094c1ff9f9c233f4c66ab62f0908290246c.gif)

I have 3 properties defined on the line:  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/2X/e/eee8541a1171ef26e3e6d241583bb1659a931ba6.png)  
StartX is the left bound x position, Length is the right bound x position, and Value is the value along the line (this not the X position value, but an engineering value that I use with an eng max to scale and produce a corresponding x position within the two bounds)

This script is defined on the propertyChange event of the line (duration is 40s so I could try to see if it actually moved somewhere):

```auto
if event.propertyName == 'Value':
	startX = event.source.StartX
	length = event.source.Length
	PVFullRange = event.source.parent.getComponent('Level Indicator').capacity
	
	newX = startX + (event.source.Value / PVFullRange) * length
	
	if newX >= startX and newX <= startX + length:
		system.gui.transform(event.source, newX = newX, duration = 40000, acceleration = 4, coordSpace = system.gui.COORD_DESIGNER)

```

This is what happens in runtime to the properties when I change the Value:  
 ![transform on line](https://us1.discourse-cdn.com/inductiveautomation/original/2X/c/cb508427bfb4328a3ad78451b53bcdfb29b01cf2.gif) - This is the X, Y, and Width values as the transform acts on them (X and Width are changing) Interestingly, the width started at 0 and is changed by the transform?  
These are the resulting end values after the transform, but the line is nowhere to be seen  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/2X/0/0365f03fecb2fc0b9d37958629bc4c11d94b6a1a.png)

When i try to move the line around with the mouse keys, this happens:  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/2X/c/c429d86d852fd72c17e6cfae712edcfceae5e81f.png)  
Entering values into the X and Width does nothing, and moving it again with keys brings back the squares. Changing the Angle to something else makes the squares appear for all 4 position values…
