# Adding component to project programmatically through SDK

**URL:** <https://forum.inductiveautomation.com/t/adding-component-to-project-programmatically-through-sdk/12021>\
**Category:** 3rd Party Modules\
**Created:** [August 10, 2016, 6:08am UTC](https://forum.inductiveautomation.com/t/adding-component-to-project-programmatically-through-sdk/12021 "2016-08-10T06:08:59Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![gekkoman](https://avatars.discourse-cdn.com/v4/letter/g/c89c15/32.png) [@gekkoman](https://forum.inductiveautomation.com/u/gekkoman)\
**Post date:** [August 10, 2016, 6:08am UTC](https://forum.inductiveautomation.com/t/adding-component-to-project-programmatically-through-sdk/12021/1 "2016-08-10T06:08:59Z")

</div>

I have two components A and B in a custom module

I have only component A on the pallet

I desire that when component A is inserted into a project it also creates an instance of component B.

I have managed to get component B visible on the window but it does not show in the Project/Windows navigation tree at all.

What is the correct way to do this?

component A and B are based on AbstractVisionPanel, and one wishes to launch component B from the A.onStartup() method.
