Compare Sublists and remove other sublists contaning similar elements

Hi,

I just need help in comparing nested sublists.

If more than one sublists contains exactly the same elements, the other sublists will be delete so only one of those lists shall remain.

Will this be hard work for revit if the items are about a hundred to a thousands?

Thanks in advance. ^^

@vbaac

or sort it and get the unique ones

1 Like

1 Like

Bros @sovitek and @AmolShah ,

Thank you for the quick reply. The List.UniqueItems node really is helpful.

Just one thing, when two of the list contains the same elements but in different sequence it does not consider it as similar list.

Is there a work around for this?

Thanks you very much ^^

@vbaac Glad we could help.

Please take a closer look at the suggested solution. This issue was already answered!

1 Like

bro @AmolShah ,

Thank you very much for the clarification. I got it now ^^… Sorry that I overlooked the “list.sort” Node.

awesome guys ^^…

1 Like