# How to deepcopy a component using python script?

**URL:** <https://forum.inductiveautomation.com/t/how-to-deepcopy-a-component-using-python-script/28462>\
**Category:** Ignition\
**Created:** [September 23, 2019, 7:40am UTC](https://forum.inductiveautomation.com/t/how-to-deepcopy-a-component-using-python-script/28462 "2019-09-23T07:40:18Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Min.Liao](https://avatars.discourse-cdn.com/v4/letter/m/96bed5/32.png) [@Min.Liao](https://forum.inductiveautomation.com/u/Min.Liao)\
**Post date:** [September 23, 2019, 7:40am UTC](https://forum.inductiveautomation.com/t/how-to-deepcopy-a-component-using-python-script/28462/1 "2019-09-23T07:40:18Z")

</div>

I want to deepcopy a component and transform the new component to any position I wanted and the old component keeps the same position . How could I achieve it?  
It looks like as below:

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/2X/0/032bf512c6aa0631afef29fad7140183e39f2348.png)  
I need to move window2 to window1 and meantime window2 will keep in the same position.

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

I know that the function of transform could change the positon, but how could I recreate an existed component?

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [September 23, 2019, 12:03pm UTC](https://forum.inductiveautomation.com/t/how-to-deepcopy-a-component-using-python-script/28462/2 "2019-09-23T12:03:18Z")

</div>

> [@Min.Liao](#):
>
> to deepcopy a component

There's no documented or supported way to do this. You have to create from scratch and add to the container, configure layout, construct bindings, and get everything started. There be dragons.

However, there is `system.nav.openWindowInstance()` available to create multiple of the same window.
