You would likely need to get the parameter definition as that’s the part of the parameter element that is “shared” between elements. As Jacob mentioned, the parameter element (assigned to each instance) is unique.
I can’t think of an instance where this ever worked differently, but will try to put a quick sample together to test tonight (desk is set up and I have a functional power cable after the move and I need a quick test of the new keyboard )
There aren’t any nodes that I’m familiar with that do that. You would have to go through the API. However it’s still unclear what it is you’re wanting to do with the parameters. The name is the easiest way to track what’s specific to the category but you said you don’t want strings.
Get the name as a string. Use GroupByKey on the parameter list with names as a key. Take the first item from every sublist. Now you’ve one example of each unique parameter and can pull data storage types and such from that.
Or get the Parameters’ IDs. Get unique values, then use IndexOf and GetItemAtIndex on your original parameter list to only get one instance of each parameter with unique parameter IDs.
Just confirmed that List.UniqueItems fails on Element.Parameters as far back as Dynamo for Revit 2.3.1 for Revit 2020. I don’t have anything older to test with as even that is no longer in the support window (2024 is officially released so support is 2021, 2022, 2023 and 2024).
I recommend using Parameter.Id instead of Parameter.Name as you can have multiple parameters with the same name (ie: Color can be a shared parameter for chairs which takes a text value, and a separate shared parameter called Color can be used for curtain wall panels which takes a material).
No worries - we’ve all been in this situation before. I’ve confused some of my old stuff more often than most. Definitely not on the ban radar - you’re too much fun to ban and add a good bit of knowledge (including what came up in this topic - other people will learn from this over time too!).
For reference: I hate bans - doing so makes me feel ill. Well except for the spam accounts - I have no qualms using the ban hammer on them like I was Thor wielding Mjölnir, but with less muscles…