Having some trouble creating a Filter in all View Templates in the default Revit template 2018. Scanned and tried a number of similar solutions here, and from courses on LinkedIn etc. Can’t seem to get this to work.
Look at your node previews to see where it’s failing. I’m guessing it’s because you’re using Family and Type which I don’t believe is a filterable parameter. I’m guessing you want Type Name. You might also want to use only the first instance of that parameter instead of for every Callout element.
That Category is not available in Dynamo for some unknown to me reason. What that means is that you cannot create that Filter using that Category. Sorry. The solution here, since obviously the OST_Viewers is a valid Revit Category is to write that yourself in Python/C# as a custom node. It’s a bit of a hassle if you ask me but it’s possible. Feel free to raise this issue of missing Categories with the DynamoRevit team here: https://github.com/DynamoDS/DynamoRevit/issues
Would your solution from a similar post help him? Maybe when he creates a “Callout Type” that it uses Floor Plan instead of “Detail View” characteristics from the Selection Box? I sometimes create a Floor Plan view & crop it then do View Reference Tags…maybe that strategy will help?
You will have to demonstrate this, not just speculate.
The issue that I have raised comes down to the fact that Category called OST_Viewers is not present in Dynamo’s Categories dropdown, and it fails to pass through their internal constructors. That makes it impossible for me to create a new Filter and assign it to that Category.
Now, Dynamo has a Category called OST_Callouts but for some reason that doesn’t seem to return anything, as in actual Callouts are of Category OST_Viewers not OST_Callouts.
Both of these are valid Categories, and using a OST_Callouts when creating the Filter in Revit UI seems to map somehow to OST_Viewers. They must do that manually in their code or something. That’s not part of Dynamo and has nothing to do with Dynamo. I am speculating because the behavior doesn’t match what I have experimented with.