Dear all, I have coded a script that applies view template to certain chosen views divided into two main sectors: the first row applies a certain viewtemplate to the views, the second row of the script applies another viewtemplate to the same views. However the problem is the following: After a lot of trials, dynamo doesn’t seem to deal with the same views twice in 1 script, having that said, it successfully rusn the first rows without problems but I can’t get to apply the 2nd viewtemplate to all views.
Any idea how to clear up the cache of dynamo maybe of something similar ?
I have even suspended the usage of custom nodes to apply the templates and coded my own python code for that, but still same porblem which makes me suspect that the problem is with RevitAPI itself.
I’m also thinking of isolating each row in a seperate customnode, do you think it’s gonna help ?
This is error is so weird where I have just noticed that when I disconnect the views list from one of the setViewTemplate node then run the script and then reconnect it again, everything works fine. It seems to be a trouble with dynamo runtime cache or something
will Export workspace function hides the names of the nodes anyway so here is normal screenshots of step0–3 as an example with data expanded (same procedure repeats itself throughout all other steps)
I did not read the whole thing, the logic I guess you are “applying” the view templates after run, logically if you wanted to apply second view temp, you need to duplicated the views first then apply view template 2.