Get one category categorized by family types

Hello, Can anyone help me with this?
I got lighting fixtures from linked model. And created family types in my model based on those types names from architectural model. Now I want to categorize all lighting fixtures from architectural model per type name. The thing is, there are always be different amount of types, so I am looking for something that separates my list of fixtures in multiple list based on their types.

You may find the List.GroupByKey node to be helpful. In your case, the list input is your list of elements and the keys input is your list of family names. This will group all elements by their family name. You can subsequently create a dictionary using Dictionary.ByKeysValues and later retrieve a specific lighting fixture type by using Dictionary.ValueAtKey.

Thank you!