I'd think this would be something straight forward, but I'm having a lot of trouble making it work. I've got 2 lists of elements, one from a linked model and one from the local model. There are many common elements between them but there are also a few that exist on each side that aren't in the other, and since the outliers can happen anywhere, a straight comparison isn't working. I'm trying to generate a list showing just the matching elements so I can pull parameter settings from the link into the local elements. What's the best way to go about getting this compiled list?
Announcement
Collapse
No announcement yet.
Find matching elements in lists
Collapse
X
-
Sol Amour
Architectural Explorer, Digital warrior, Affectual adventurer and Curious Human Being
Portfolio Website @ Cargo Collective
-
Hi Sol,
I had tried Set Union and == with cross product, but I don't think I tried Set difference yet. So is the idea to pull those out and use them to filter each list down to the same values? That seems like it could be a simpler way to do it. I'll give that a try and see what happens. Thanks for the suggestion.
Comment
-
Chris,
I think you may want SetIntersection. It will return Items which are in both list. You can see link below on the dynamo dictionary for a better explanation.
Dynamo Dictionary
You should take a look at SetIntersection, SetDifference, and SetUnion. They are very powerful nodes.
Comment
-
I was able to get the list I was looking for with 2 Set Difference nodes, but it looks like Set Intersection does the same thing in 1.. thanks for the tip. I'm still very new at this so it's a lot of guessing and googling. My next question to actually make this functional, is what's the best way to get the list of elements from this list of keys? We have a series of checkboxes on our gridlines here for visibility control (major, minor, demolished, area 1, area 2, etc) and I'm trying to automate a way to sync those checkboxes across linked models.
Comment
Related Topics
Collapse
-
Hi,
I have a graph which I put together that add objects based on a list of elements - to work it starts with the nodes 'Categories' and...-
Channel: Dynamo BIM
January 28, 2016, 07:54 AM -
-
Hello,
First, sorry for my english, it's not my native language.
I'm looking to numbering elements with Dynamo (by injecting...-
Channel: Dynamo BIM
August 18, 2015, 10:00 AM -
-
Hi Team,
Maybe one you gurus can help me out. I'm trying to step through a list of strings assigning each one to an instance parameter of a...-
Channel: Dynamo BIM
September 11, 2018, 04:07 PM -
-
they say a picture is worth thousands words, well, not all of them:
I've reached "THAT POINT" in working...-
Channel: Dynamo BIM
August 1, 2021, 12:38 PM -
-
I've had a bit of struggle with Package Manager lately, but I'm happy to report I was able to get a new version of Bakery uploaded today. I'm pretty sure...
-
Channel: Blog Feeds
October 29, 2015, 12:15 AM -
Comment