(edit) Changed the title because a different issue was found and solved. The issue listing all instances of a parent family has been solved. The element ID is still an issue.
(edit 2) The element ID issue has been solved by using the same Node that Kulkul suggested.
Original Post Below
I’m having some issues with the element that Dynamo shows when given an element ID.
Basically, I feed the element ID to a script and the Family it retrieves is the wrong family.
Script and Element attached below. The only node from a package in the script is Element.ById, it is form the Wombat Dynamo package. Running Dynamo 2.0.3 on Revit 2019.2.2
I’ve also uploaded an alternate script that isn’t picking up the existence of the family based on filtering the list of families using String.Contains
Not sure what i’m doing wrong with the script, I’d appreciate any help.
Edit: For the most part, it returns the right element, but for some reason there are some elements that aren’t being picked up properly. (This applies to this script and the alternate script). Also, if it helps. the family does not have any nested families, the shapes are just masking regions.