# Replicate select element button (Custom UI Node)

**URL:** <https://forum.dynamobim.com/t/replicate-select-element-button-custom-ui-node/17338>\
**Category:** Developers\
**Tags:** ui\
**Created:** [December 13, 2017, 2:04am UTC](https://forum.dynamobim.com/t/replicate-select-element-button-custom-ui-node/17338 "2017-12-13T02:04:52Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Clover](https://avatars.discourse-cdn.com/v4/letter/c/c0e974/32.png) [@Clover](https://forum.dynamobim.com/u/Clover)\
**Post date:** [December 13, 2017, 2:04am UTC](https://forum.dynamobim.com/t/replicate-select-element-button-custom-ui-node/17338/1 "2017-12-13T02:04:52Z")

</div>

Hi All,

I am developing a Custom UI Node which I want to put few selection model element button together. Currently I am able to select elements from Revit (tested by using Zero Touch), but I am stuck at how to convert these elements to AssociativeNode so can be output by dynamo custom UI. Is Dynamo even allow developers to do custom selection in such way ?

**Script to Select elements from Revit:**

 ![Selection](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/3/3/33602610229ee6f38738bd82f838b74d6643e906.PNG)

**Zero Touch Test**  
 ![ZeroTouchTest](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/0/5/0542f45837992e68fe767438a492605856f3e9bf.PNG)

**Custom UI Test Connection**  
For this code , i just want to make sure the elements is being selected and stored in the system.

 ![Test](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/b/4/b4653640b48006010420463416cc6cde8e34afa4.PNG)

![TestPic](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/b/8/b86543c08f6aa5169b86874663331ab933b5c2e2.PNG)

Thank You !  
Clover

---

<div class="post-metadata">

**Author:** ![Zach\_Kron](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/zach_kron/32/349_2.png) [@Zach\_Kron](https://forum.dynamobim.com/u/Zach_Kron)\
**Post date:** [January 8, 2018, 4:21pm UTC](https://forum.dynamobim.com/t/replicate-select-element-button-custom-ui-node/17338/2 "2018-01-08T16:21:21Z")

</div>

Hi @Clover  
There are a couple resources for this. There are instruction for "Custom UI " nodes:

> **[DynamoDS/Dynamo](https://github.com/DynamoDS/Dynamo/wiki/How-To-Create-Your-Own-Nodes)**
>
> Open Source Graphical Programming for Design. Contribute to DynamoDS/Dynamo development by creating an account on GitHub.

And a more in depth discussion of these more advanced nodes here:  
[https://github.com/teocomi/dug-dynamo-unchained/tree/master/dynamo-unchained-2-learn-how-to-develop-explicit-nodes-in-c%23](https://github.com/teocomi/dug-dynamo-unchained/tree/master/dynamo-unchained-2-learn-how-to-develop-explicit-nodes-in-c%23)

And you can look at the specific code used to create selection in Revit in Select Model Element here:

> **[DynamoDS/DynamoRevit](https://github.com/DynamoDS/DynamoRevit/tree/Revit2018/src/Libraries/RevitNodesUI)**
>
> Dynamo Libraries for Revit. Contribute to DynamoDS/DynamoRevit development by creating an account on GitHub.

Hope that helps!  
-Z

---

<div class="post-metadata">

**Author:** ![Michael\_Kirschner2](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/michael_kirschner2/32/75576_2.png) [@Michael\_Kirschner2](https://forum.dynamobim.com/u/Michael_Kirschner2)\
**Post date:** [January 9, 2018, 6:39pm UTC](https://forum.dynamobim.com/t/replicate-select-element-button-custom-ui-node/17338/3 "2018-01-09T18:39:58Z")

</div>

DynamoSamples repo may be the simplest to use.

---

<div class="post-metadata">

**Author:** ![Clover](https://avatars.discourse-cdn.com/v4/letter/c/c0e974/32.png) [@Clover](https://forum.dynamobim.com/u/Clover)\
**Post date:** [January 11, 2018, 9:09am UTC](https://forum.dynamobim.com/t/replicate-select-element-button-custom-ui-node/17338/4 "2018-01-11T09:09:01Z")

</div>

I am able to get the Curve from Revit now but it brings out other issues.  
Here is link to the updated post:

> <https://github.com/DynamoDS/DynamoRevit/issues/1890>
