FilterRule.ByRuleType input issues

Thanks, I’ll keep that in mind. The first parameter is the limiting one anyways. When I first tried creating this I used a a simple code block with strings connected to a Category.byName node. I’m guessing it would be easier to modify the python node to take that instead of generating it within the node. It would also help when you want the filter to apply to only some categories that the parameter is assigned to.

I’ve tried plugging categories in and using this but I keep getting ‘List[object]’ object has no attribute ‘Id’.

cat = IN[2]
cat_id = [cat.Id for catid in cat]

# Convert Python list to .NET List<ElementId>
cat_ids_list = List[ElementId](cat_id)

I don’t need this to work however for my current script.

1 Like