Hi, my goal is to exclude a couple parameters from all view templates in a project. I have gotten this far… But the ViewTemplates.Include node can receive only one view template at a time I think. I appreciate any assistance. (Graphics help me as well, I’m still very new to dyanmo
)
What does the warning say? What do you mean by “exclude”? You want to remove a parameter from the templates?
The warning states that the node is looking for the parameter as an integer (index most likely). You need to determine the integer for the parameter in question and provide that.
EDIT: Looking at some related nodes, it seems that the integer it’s expecting is just the ElementId.
I tried both IDs I dont really get anywhere. Maybe there’s another method you have heard of that can do this? I’m at a loss.
You need to get the parameter from the template itself. You can get the parameter by name and then get the ElementId from the parameter element. You’ll also want to filter out any templates that don’t contain the parameter to avoid nulls or you can search all the parameters for name matches and provide a list. The node will handle empty lists but it won’t handle null parameters.
Also it looks like you are filtering the parameter names, not the parameters in the lower branch’s List.FilterByBoolMask.
Ahh, okay, sorry for misunderstanding. I follow now.




