Filtering a list by a set of parameter values

Hi there,

Is there a node in Dynamo that can filter out only the elements whose parameter value matches one of the items of a given list?
Attached is an example in which I am trying to get only the Sheets according to the sheet number where the length of the two lists ist not equal. In other words, I need to select any sheet that its number might be found in the list.
The sheet numbers are extracted from title blocks contained in the sheets.

Trying to understand your goal…so you have a list of sheets in your project, let’s say it’s something like this:

  • A-101
  • A-102
  • A-103
  • A-104

And you’re cross-referencing it with a separate list of sheet numbers like this:

  • A-103
  • A-104
  • A-105

The set intersection of the lists is:

  • A-103
  • A-104

So, you want to get the actual sheets with sheet numbers A-103 and A-104. If this is the case, you should make a dictionary by keys and values where the sheet number is the key and the actual sheet is the value. It would look something like this:

{
'A-101': Sheet,
'A-102': Sheet,
'A-103': Sheet,
'A-104': Sheet,
}

You can then use a Dictionary.ValueAtKey node to retrieve the sheet given its name.

1 Like