The Nod == doesn't work with categories

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 ?

by using == node you should convert them to string

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.

1 Like

you can use the node List.Contains