As you can see from my posted graph, I have plenty of workarounds for this “issue”, but I’m really trying to understand why this doesn’t work when it seems like it should.
I’m using Revit 2016 and Dynamo 1.3.2.
-I have a bunch of Revit elements (selected, in this case, using Springs.Collector.CurrentSelection, but how you get the list of elements doesn’t seem to matter).
-I am trying to filter the elements by Revit category, using FilterByBoolMask. (I know that I can use custom nodes, such as Springs.Filter.ByCategoryName- but I’d like to do this using out of the box nodes for simplicity of distribution to others)
-I use Element.GetCategory to get a list of Categories for the selected elements.
-I use the Categories node to choose the Category I want to filter by. (Grids, in this case)
I assume that both these nodes return a Revit element, and that Revit Element is a Category.
If you feed the results of these nodes both through an Element.ID node, that seems to be borne out. (See the attached image)
So, if you feed the output of the “Category” and “Element.GetCategory” nodes into an “==” or “Equals” node, why does this fail to return “True”?
What am I missing here? Any insight is appreciated.