"Apply Template Properties to Current View"


#1

I am very new to Dynamo, only been using it about a week, so i am sure this is a simple question I just cannot figure it out. I am trying to create a graph that works like the “Apply Template Properties to Current View”. If i create a graph that is just apply view template and then a separate graph that removes the template it works fine. However when i combine them into one graph i cannot get it to work. I have tried using the “Passthrough” node from clockworks and the “Input.Wait” from spring nodes to have the graph apply the template and then when that is done remove it. No errors it just doesn’t seem to work. I couldn’t find any information on how to do this in the forums. If some one could help with this graph or point me in a better direction to apply template properties that would be awesome!


#2

Try this:


#3

Thanks for the Reply Jacob. I tried that but it is still not applying the template to the RVT file. It almost seems linke everything is working fine in dynamo its just getting Revit to apply it.

Apply Template Properties to Current View.dyn (5.1 KB)


#4

What if you remove the ‘remove view template’ node? Do the templates actually apply themselves?


#5

@Tyson_Bekker

Try to understand what im doing here.

Marcel


#6

How do i download this?
image


#7

@tailieudutruqn94 I think the “View.SetViewTemplate” from archi-lab is the same thing.


#8

@Marcel_Rijsmus
Thanks for Answering Marcel.

If i am understanding the thread correctly, you have an existing view template applied to your view. Then you save views and view templates in excel. Next you apply a new view template with the changes you would like to apply. Last you reapply the the original view templates from the information you have saved in excel. I tried mimicking that idea on a much simpler scale. The issue i am having here is that it does not apply the first View.SetViewTemplate. However, it does apply the Second one. Example When I press run it only applies View Template Test 2. It does not apply anything from View Template Test 1. Apply Template Properties to Current View.dyn (5.6 KB)
one.


#9

Hi @Tyson_Bekker

You can merge the templates only if you uncheck the include options for the parameter like so:
Original Template.

Temporary Template.

Then go back to the original view template (stored in excel or a parameter i created in this example)

Marcel