Does anybody know why this logic doesn’t work? And how can I deal with this except converting it to String.
Is this the only way ?
you can also get category id for == node.
Both work. Reason is that not all elements are compatible, specifically complex ones. Revit Elements, geometries, AutoCAD objects, etc all have to be simplified to be compared via the == node.
you can use the node List.Contains