# Remove List From List

**URL:** <https://forum.dynamobim.com/t/remove-list-from-list/23818>\
**Category:** Packages\
**Created:** [July 17, 2018, 12:08pm UTC](https://forum.dynamobim.com/t/remove-list-from-list/23818 "2018-07-17T12:08:28Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![daniel.petrin](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/daniel.petrin/32/27974_2.png) [@daniel.petrin](https://forum.dynamobim.com/u/daniel.petrin)\
**Post date:** [July 17, 2018, 12:08pm UTC](https://forum.dynamobim.com/t/remove-list-from-list/23818/1 "2018-07-17T12:08:29Z")

</div>

Hi,

I have this node, but… i dont know why… it’s not working.

Is anyone know about this?  
What’s package from this node?

![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/c/a/caf625a84d4a8e91e7999a706bb07ea0b26930c7.png)

---

<div class="post-metadata">

**Author:** ![Jonathan.Olesen](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/jonathan.olesen/32/44242_2.png) [@Jonathan.Olesen](https://forum.dynamobim.com/u/Jonathan.Olesen)\
**Post date:** [July 17, 2018, 12:12pm UTC](https://forum.dynamobim.com/t/remove-list-from-list/23818/2 "2018-07-17T12:12:53Z")

</div>

It’s from the “Rhythm” package 🙂

The content is a simple line of Python

`OUT = set(IN[0]) - set(IN[1])`

To know why it’s not working in your setup however we’d need to know what data structure you’re feeding the node 🙂

---

<div class="post-metadata">

**Author:** ![daniel.petrin](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/daniel.petrin/32/27974_2.png) [@daniel.petrin](https://forum.dynamobim.com/u/daniel.petrin)\
**Post date:** [July 17, 2018, 12:16pm UTC](https://forum.dynamobim.com/t/remove-list-from-list/23818/3 "2018-07-17T12:16:45Z")

</div>

I also was thinking this… but… cant find anymore kkk

i found in another pkg…

![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/3/f/3f03cda7c5f43f0b640b74400d3c8eb418fc60c5.png)

![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/a/f/aff97aa36c63e92c9b52d7fb8cecb3ad10851b0e.png)

---

<div class="post-metadata">

**Author:** ![Jonathan.Olesen](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/jonathan.olesen/32/44242_2.png) [@Jonathan.Olesen](https://forum.dynamobim.com/u/Jonathan.Olesen)\
**Post date:** [July 17, 2018, 12:23pm UTC](https://forum.dynamobim.com/t/remove-list-from-list/23818/4 "2018-07-17T12:23:02Z")

</div>

So your issue is? Maybe show what you data looks like and how you subsequently would like it to look and a solution would be easier to give 😉

---

<div class="post-metadata">

**Author:** ![daniel.petrin](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/daniel.petrin/32/27974_2.png) [@daniel.petrin](https://forum.dynamobim.com/u/daniel.petrin)\
**Post date:** [July 17, 2018, 12:25pm UTC](https://forum.dynamobim.com/t/remove-list-from-list/23818/5 "2018-07-17T12:25:58Z")

</div>

the situation is…

Until some days ago, the note REMOVE LIST FROM ANOTHER LIST (Rhythm) was working.

Today not more.

And there is anothers nodes with the same situation…

Why is this happening? Because the owners can be refreshing the names?

---

<div class="post-metadata">

**Author:** ![Jonathan.Olesen](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/jonathan.olesen/32/44242_2.png) [@Jonathan.Olesen](https://forum.dynamobim.com/u/Jonathan.Olesen)\
**Post date:** [July 17, 2018, 12:26pm UTC](https://forum.dynamobim.com/t/remove-list-from-list/23818/6 "2018-07-17T12:26:57Z")

</div>

Have you recently updated packages/Revit/Dynamo etc? That could cause this…

Also knowing what the error-message you’re getting from the node says would be helpful in troubleshooting the issue.

---

<div class="post-metadata">

**Author:** ![daniel.petrin](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/daniel.petrin/32/27974_2.png) [@daniel.petrin](https://forum.dynamobim.com/u/daniel.petrin)\
**Post date:** [July 17, 2018, 12:28pm UTC](https://forum.dynamobim.com/t/remove-list-from-list/23818/7 "2018-07-17T12:28:42Z")

</div>

yes…

can be this…

thanks Jonathan!

---

<div class="post-metadata">

**Author:** ![daniel.petrin](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/daniel.petrin/32/27974_2.png) [@daniel.petrin](https://forum.dynamobim.com/u/daniel.petrin)\
**Post date:** [July 17, 2018, 12:30pm UTC](https://forum.dynamobim.com/t/remove-list-from-list/23818/8 "2018-07-17T12:30:02Z")

</div>

by the way… about the python line…

OUT = set(IN[0]) - set(IN[1])

i started python studies 2 days ago hehe… could you tell me more about this python node?

i tried input this line and not worked

---

<div class="post-metadata">

**Author:** ![Jonathan.Olesen](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/jonathan.olesen/32/44242_2.png) [@Jonathan.Olesen](https://forum.dynamobim.com/u/Jonathan.Olesen)\
**Post date:** [July 17, 2018, 12:32pm UTC](https://forum.dynamobim.com/t/remove-list-from-list/23818/9 "2018-07-17T12:32:02Z")

</div>

> [@daniel.petrin](#):
>
> OUT = set(IN[0]) - set(IN[1])

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/0/0/00da88863eb21b0d0f0091bd03b16af92ed5fbfb.png)

IN[0] in the python script is the first input, “IN[1]” is the second (in python index start at 0).

A “set” in Python is an unordered collection with no duplicate elements.

---

<div class="post-metadata">

**Author:** ![Alban\_de\_Chasteigner](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/alban_de_chasteigner/32/39650_2.png) [@Alban\_de\_Chasteigner](https://forum.dynamobim.com/u/Alban_de_Chasteigner)\
**Post date:** [July 17, 2018, 12:33pm UTC](https://forum.dynamobim.com/t/remove-list-from-list/23818/10 "2018-07-17T12:33:44Z")

</div>

I suggest you download the next to last version of Rhythm on [https://dynamopackages.com/](https://dynamopackages.com/)  
You will find the node in the zip.

Drop the RemoveListFromList.dyf in the folder C:\Users\XXX\AppData\Roaming\Dynamo\Dynamo Revit\VERSION\definitions

---

<div class="post-metadata">

**Author:** ![daniel.petrin](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/daniel.petrin/32/27974_2.png) [@daniel.petrin](https://forum.dynamobim.com/u/daniel.petrin)\
**Post date:** [July 17, 2018, 12:48pm UTC](https://forum.dynamobim.com/t/remove-list-from-list/23818/11 "2018-07-17T12:48:18Z")

</div>

Thanks guys…

@Jonathan.Olesen , i will try python!

@Alban_de_Chasteigner… it worked… but, the strange think is that i have did the package refresh before… but just worked after download

![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/2/b/2b880be8b734aeb66c9b678461b1d18c5bed86f5.png)

---

<div class="post-metadata">

**Author:** ![Alban\_de\_Chasteigner](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/alban_de_chasteigner/32/39650_2.png) [@Alban\_de\_Chasteigner](https://forum.dynamobim.com/u/Alban_de_Chasteigner)\
**Post date:** [July 17, 2018, 12:53pm UTC](https://forum.dynamobim.com/t/remove-list-from-list/23818/12 "2018-07-17T12:53:29Z")

</div>

I noticed that the node is no longer in the latest version (2018.6.7).  
It is in version 2018.4.20.

@Jonathan.Olesen’s answer is a good opportunity to practice the python language.

---

<div class="post-metadata">

**Author:** ![daniel.petrin](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/daniel.petrin/32/27974_2.png) [@daniel.petrin](https://forum.dynamobim.com/u/daniel.petrin)\
**Post date:** [July 17, 2018, 1:06pm UTC](https://forum.dynamobim.com/t/remove-list-from-list/23818/13 "2018-07-17T13:06:47Z")

</div>

oh yes!!

i clicked in a wrong link… and got the node kkk

that’s ok!

thanks

---

<div class="post-metadata">

**Author:** ![Vikram\_Subbaiah](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/vikram_subbaiah/32/50797_2.png) [@Vikram\_Subbaiah](https://forum.dynamobim.com/u/Vikram_Subbaiah)\
**Post date:** [July 17, 2018, 3:49pm UTC](https://forum.dynamobim.com/t/remove-list-from-list/23818/14 "2018-07-17T15:49:19Z")

</div>

@daniel.petrin If your objective is similar to the graph provided by @Jonathan.Olesen above, you can do this …

 ![setDifference](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/e/7/e76d9548c522197ba6282e5e5a3a60e1722076b3.png)
