# How to convert space planning code to refinery

**URL:** <https://forum.dynamobim.com/t/how-to-convert-space-planning-code-to-refinery/48581>\
**Category:** FAQ\
**Created:** [March 28, 2020, 5:36pm UTC](https://forum.dynamobim.com/t/how-to-convert-space-planning-code-to-refinery/48581 "2020-03-28T17:36:52Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![fjxfjx2015hp](https://avatars.discourse-cdn.com/v4/letter/f/7ba0ec/32.png) [@fjxfjx2015hp](https://forum.dynamobim.com/u/fjxfjx2015hp)\
**Post date:** [March 28, 2020, 5:36pm UTC](https://forum.dynamobim.com/t/how-to-convert-space-planning-code-to-refinery/48581/1 "2020-03-28T17:36:52Z")

</div>

Hellow everyone, i am currently working this space planning code for my project. And i now, i want to transfer this sample code to refinery. How should set for the input and output in order to create generative design on refinery? Link: [https://www.youtube.com/watch?v=ID5M8EOUZ\_c](https://www.youtube.com/watch?v=ID5M8EOUZ_c)

 ![DYnamo spaceplanning](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/3/3/332d353b00ad64011c71b70f2b03fd41a6fa0e10.jpeg)

---

<div class="post-metadata">

**Author:** ![Kulkul](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/kulkul/32/49801_2.png) [@Kulkul](https://forum.dynamobim.com/u/Kulkul)\
**Post date:** [March 28, 2020, 6:28pm UTC](https://forum.dynamobim.com/t/how-to-convert-space-planning-code-to-refinery/48581/2 "2020-03-28T18:28:56Z")

</div>

> [@fjxfjx2015hp](#):
>
> How should set for the input and output in order to create generative design on refinery?

Right click the Inputs and Outputs - Set to **`Is Input`** and **`Is Output`** :

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/8/1/81984cf951806d75604a5760ccaad8d5e0c2d84e.png)

---

<div class="post-metadata">

**Author:** ![fjxfjx2015hp](https://avatars.discourse-cdn.com/v4/letter/f/7ba0ec/32.png) [@fjxfjx2015hp](https://forum.dynamobim.com/u/fjxfjx2015hp)\
**Post date:** [March 29, 2020, 1:27am UTC](https://forum.dynamobim.com/t/how-to-convert-space-planning-code-to-refinery/48581/3 "2020-03-29T01:27:24Z")

</div>

![dynamo](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/f/c/fc36a14d1812ce53f9e3dc2918bfb1a81200d3db.png)  
After i set one of the number slider to output, my generative design result becomes like this which is not what i want. All the circle should be inside the polygon.

---

<div class="post-metadata">

**Author:** ![Kulkul](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/kulkul/32/49801_2.png) [@Kulkul](https://forum.dynamobim.com/u/Kulkul)\
**Post date:** [March 29, 2020, 2:32am UTC](https://forum.dynamobim.com/t/how-to-convert-space-planning-code-to-refinery/48581/4 "2020-03-29T02:32:53Z")

</div>

> [@fjxfjx2015hp](#):
>
> After i set one of the number slider to output,

Your inputs should be all the inputs nodes (Number slider) which are on left side of the graph and output should be last node (Watch node) on the right side of the graph. If it’s till doesn’t work for you then drop dyn file here. I will make video to explain you better.

---

<div class="post-metadata">

**Author:** ![fjxfjx2015hp](https://avatars.discourse-cdn.com/v4/letter/f/7ba0ec/32.png) [@fjxfjx2015hp](https://forum.dynamobim.com/u/fjxfjx2015hp)\
**Post date:** [March 29, 2020, 4:01am UTC](https://forum.dynamobim.com/t/how-to-convert-space-planning-code-to-refinery/48581/5 "2020-03-29T04:01:30Z")

</div>

I cannot send the file directly through this website, as i am new user. Can i send it through you email if it is possible.

---

<div class="post-metadata">

**Author:** ![fjxfjx2015hp](https://avatars.discourse-cdn.com/v4/letter/f/7ba0ec/32.png) [@fjxfjx2015hp](https://forum.dynamobim.com/u/fjxfjx2015hp)\
**Post date:** [March 29, 2020, 4:03am UTC](https://forum.dynamobim.com/t/how-to-convert-space-planning-code-to-refinery/48581/6 "2020-03-29T04:03:32Z")

</div>

The sample file you can download directly from this web: [https://dynamobim.org/space-planning-in-dynamo-with-dynaspace/](https://dynamobim.org/space-planning-in-dynamo-with-dynaspace/)

---

<div class="post-metadata">

**Author:** ![fjxfjx2015hp](https://avatars.discourse-cdn.com/v4/letter/f/7ba0ec/32.png) [@fjxfjx2015hp](https://forum.dynamobim.com/u/fjxfjx2015hp)\
**Post date:** [March 29, 2020, 8:11am UTC](https://forum.dynamobim.com/t/how-to-convert-space-planning-code-to-refinery/48581/7 "2020-03-29T08:11:07Z")

</div>

Any one can help me ???

---

<div class="post-metadata">

**Author:** ![DomE](https://avatars.discourse-cdn.com/v4/letter/d/85f322/32.png) [@DomE](https://forum.dynamobim.com/u/DomE)\
**Post date:** [May 18, 2020, 9:47am UTC](https://forum.dynamobim.com/t/how-to-convert-space-planning-code-to-refinery/48581/8 "2020-05-18T09:47:54Z")

</div>

The circles previewed in dynamo belongs to the dynashape node. Maybe you need to redraw the circles as geometry using the data and give colors.
