Script not recognising Categories

Trying to debug a script, so here is a snippet: I’m basically trying to filter down a selection of multiple elements to just handle the text notes. However, my attempt to Filter by Boolean Mask is futile since my == node doesn’t seem to give True results.

I’ve tried OOTB and Clockwork nodes, both aren’t working so I must be doing something wrong.

@dan.buckingham ,

is it updaded ? do you use Revit 2024.1 dynamo 2.18 and package Ironpython2 Ironpython3 is loaded ?

KR

Andreas

Revit 2023.1.20.70
Dynamo v2.16.1
IronPython 2.7 installed
IronPython 3 installed

@dan.buckingham ,

look at the costum node (clockwork)

what does the pythonscript say?

KR

Andreas

Hello,
here is a way

color white (revit)
I like the color difference

cordially
christian.stan

Thank you, worked beautifully.
Given my Python knowledge is clearly limited, can you explain why this works?
What does the x.Name actually do?

returns the string name of the category in the language of use

it’s more DesignScript Here in the codeblock
(x represent Revit.Elements.Category)

image

cordially
christian.stan