# How to programmatically create a new FPMI window in designer and save it?

**URL:** <https://forum.inductiveautomation.com/t/how-to-programmatically-create-a-new-fpmi-window-in-designer-and-save-it/18767>\
**Category:** Module Development\
**Created:** [July 9, 2018, 6:39am UTC](https://forum.inductiveautomation.com/t/how-to-programmatically-create-a-new-fpmi-window-in-designer-and-save-it/18767 "2018-07-09T06:39:39Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mukta\_kothiwan](https://avatars.discourse-cdn.com/v4/letter/m/839c29/32.png) [@mukta\_kothiwan](https://forum.inductiveautomation.com/u/mukta_kothiwan)\
**Post date:** [July 9, 2018, 6:39am UTC](https://forum.inductiveautomation.com/t/how-to-programmatically-create-a-new-fpmi-window-in-designer-and-save-it/18767/1 "2018-07-09T06:39:39Z")

</div>

Hello,

In my module, I am trying to create a new window in an existing project and adding some components in it after which I want to save the window. Please see the code below, I am using the commitDesignable method of the window worksapce however it is not saving the changes made in the created window. Please help.

![](https://us1.discourse-cdn.com/inductiveautomation/original/2X/9/9940378ed6dc25e6c08b72c944ef7b7628c96b94.png)

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [July 9, 2018, 2:42pm UTC](https://forum.inductiveautomation.com/t/how-to-programmatically-create-a-new-fpmi-window-in-designer-and-save-it/18767/2 "2018-07-09T14:42:51Z")

</div>

What is your actual, ultimate end goal here? Creating and saving resources like this is 1. extremely complicated and 2. extremely fragile to Ignition codebase changes (I can _guarantee_ that anything you end up getting to work will not work in 8.0, for instance).

If there’s another way to achieve the same end result, I would highly recommend pursuing that.
