# Set Value to Items in Sub-List

**URL:** https://forum.dynamobim.com/t/set-value-to-items-in-sub-list/2800
**Category:** Packages
**Created:** [December 28, 2015, 1:13pm UTC](https://forum.dynamobim.com/t/set-value-to-items-in-sub-list/2800 "2015-12-28T13:13:26Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![Andre\_J](https://avatars.discourse-cdn.com/v4/letter/a/9de0a6/32.png) [@Andre\_J](https://forum.dynamobim.com/u/Andre_J)
#### Post date: [December 28, 2015, 1:13pm UTC](https://forum.dynamobim.com/t/set-value-to-items-in-sub-list/2800/1 "2015-12-28T13:13:26Z")

</div>

Hello all,

I am once again in need of your assistance.

Let me explain my situation,

I have several “generic model” elements. There are several families (“structural connections” category) placed on each of these generic model elements. All generic model elements contain a unique value for the “Mark” parameter. I would like to take the mark value , from each of the generic model elements and apply this to the mark value of the families placed on each generic model element. for example:

generic model element 1 (“Mark” parameter = P20), 8 families on this element, i would like to set the “mark” parameter for each “structural Connection” family to P20.

generic model element 2 (“Mark” parameter = P30), 5 families on this element, i would like to set the “mark” parameter for each “structural Connection” family to P30.

and so on…

&nbsp;

With the help of SteamNodes, Tool.GetSurroundingElements and some list management I am able to obtain a list, showing which families are associated with which generic model element. how would I get the "mark " values to populate properly?

![1](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/2X/9/931c79e5ab9990f5fe5e99e7cabfbf1e8a9d9af8.png)

&nbsp;

&nbsp;

---

<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: [December 28, 2015, 10:30pm UTC](https://forum.dynamobim.com/t/set-value-to-items-in-sub-list/2800/2 "2015-12-28T22:30:36Z")

</div>

Hi Andre,

You need to adjust your “Tolerance” to get values properly. See if it works otherwise you can put here rvt file here so that i can provide to you workflow.

&nbsp;

---

<div class="post-metadata">

### Author: ![Andre\_J](https://avatars.discourse-cdn.com/v4/letter/a/9de0a6/32.png) [@Andre\_J](https://forum.dynamobim.com/u/Andre_J)
#### Post date: [December 29, 2015, 9:37am UTC](https://forum.dynamobim.com/t/set-value-to-items-in-sub-list/2800/3 "2015-12-29T09:37:10Z")

</div>

Thank You for the response KulKul!. Could you help me understand the “Tolerance” value? what does the number represent? this question was asked in a earlier post but with no answer.

&nbsp;

&nbsp;

---

<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: [December 29, 2015, 11:03am UTC](https://forum.dynamobim.com/t/set-value-to-items-in-sub-list/2800/4 "2015-12-29T11:03:41Z")

</div>

Hi Andre,

I think it represent to “Bounding Box Intersects Filter Outline”. I usually play with it until it satisfied my requirements ![:)](https://cdck-file-uploads-us1.s3.dualstack.us-west-2.amazonaws.com/flex022/uploads/dynamobim/original/1X/d5c707ea9e8f1bbd0c95a662c6d01970d3453729.gif)

---

<div class="post-metadata">

### Author: ![Andre\_J](https://avatars.discourse-cdn.com/v4/letter/a/9de0a6/32.png) [@Andre\_J](https://forum.dynamobim.com/u/Andre_J)
#### Post date: [December 29, 2015, 2:18pm UTC](https://forum.dynamobim.com/t/set-value-to-items-in-sub-list/2800/5 "2015-12-29T14:18:30Z")

</div>

Kul Kul, I managed to get this to work with the help of your response from a previous post. Lacing & _List.of Repeateditem_ is what I was missing. many Thanks!!

---

<div class="post-metadata">

### Author: ![Andre\_J](https://avatars.discourse-cdn.com/v4/letter/a/9de0a6/32.png) [@Andre\_J](https://forum.dynamobim.com/u/Andre_J)
#### Post date: [December 29, 2015, 3:41pm UTC](https://forum.dynamobim.com/t/set-value-to-items-in-sub-list/2800/6 "2015-12-29T15:41:42Z")

</div>

A question for all the Python masters:

It appears that the _Tool.GetSurroundingElements_ (from SteamNode) is using a python script to obtain a boundary box of the host and proceed to evaluate all intersecting elements. I think.....

Is it possible to have the script **first** include all elements **within** the host boundary box and then followed by evaluating the intersecting elements?

I am running into a situation where the ....intersecting elements...portion of the script is being prioritized over the elements that actually reside within the host boundary box. Or at least that is what I think is happening.

I have attached an image showing the results after I run dynamo. (unfortunately the rvt file is too big to upload, I can certainly email the rvt file if anyone is interested)

As always thank you for the help

[Capture](http://dynamobim.org/wp-content/uploads/forum-assets/ajagnanangateprecast-com/12/29/Capture.pdf)

[Loose Hardware for David](http://dynamobim.org/wp-content/uploads/forum-assets/ajagnanangateprecast-com/12/29/Loose-Hardware-for-David.dyn)
