I am trying to generate view filters with Dynamo, by each floor elements. But it seems every time I am trying to run it, it is replacing the previous filter instead of creating new one. I am aware of dynamo behavior of replacing previous output with new one. I am running the script from Dynamo Player and also tried to run the script in separate session but the problem prevails. Any solution would be helpful. I am using ParameterFilterElement.ByRule Node to create the filters.
dylim
March 2, 2022, 6:26am
2
The previous filter element could be bound in the script.
Can you try the instruction below?
Ok, but what if you don’t want element bindings? There are two methods to fix this which use. I recommend doing a save as in both cases, and checking the before and after carefully when done.
Open a new Revit file, then open the .dyn in Dynamo, disconnect all nodes which ‘start’ the graph (basically disable anything in the ‘gather’ stage of your workflow), and run the graph. Quickly confirm that the many errors have produced a null result on EVERY node which interacts with Revit. Normally, this would be bad, but in this case… save the graph, reconnect the selection nodes, and save the graph again. The bindings should have been removed. Alternatively you can replace the nodes which create Revit content with new versions - copy/paste is your friend. This can be difficult as you may not know every node in your first pass. Both of these methods are more ‘user friendly’ to perform, as they keep you in the Dynamo user interface.
Open the graph in a text editor, find the “Bindings” section, and remove all the content in the brackets. Be sure to catch it all and not mess with anything else - you may corrupt your .dyn otherwise. This is nice as it can be automated (with Dynamo even), and as such can be performed quickly on many files at once.
More info on this topic can be found in my AU class handout and recording here: https://www.autodesk.com/autodesk-university/class/Getting-Good-Stuff-Out-Pandoras-Box-Element-Binding-Dynamo-Revit-2019
1 Like