Apply View Template

Any idea why this ApplyViewTemplate node doesn’t work?
The Views I’m passing exist, as do the View Templates
The only thing I can think of is that the Views had just been created a couple of nodes upstream - could it be “too soon”?
I’d upload the entire graph, but it’s extremely complex & everything work up until this point.
The ApplyViewTemplate node doesn’t throw any errors, it just returns nul

Of course, as soon as I asked, one more change made it work. :roll_eyes:
But I still don’t understand why.
I changed the Lacing from the default to “Longest” and it worked as expected.
But both Lists are the same length, so why should Lacing matter?

I was also using this node, from SteamNodes package. Sometimes i got it to work, other times I wasnt able to… Now ive started to use
image

you can find this node in Archi-lab_Grimshaw package. Only difference is tha you need to get viewtemplate as View…

1 Like

can you provide the entire graph? it looks like this is what I have been trying to accomplish. i am very new to Dynamo and do not fully understand it yet.

Thanks

I believe you can also use set parameter by name to apply view templates, or am I mistaken?

What do you mean by “Only difference is tha you need to get viewtemplate as View…”?

If you use GetParameterValueByName node with “View Template” as parameter name, you will get View Template as Revit Element (View).