Assign 3D View template

Hii guys,

I’ve been searching around and can’t find the right awnser.

the question is: How to assign a view template to a Axonometric view with the revit API

Thnks in advance

Assuming you have the ElementId of the view template, can directly set the target View’s ViewTemplateId property.

# Assume 'view' is your axon view
# Assume 'id' is the ElementId of your template
view.ViewTemplateId = id
3 Likes

Yes that did the trick!

I was on the right track but instead of feeding an ID number, I gave it a string of the ID number which did not go so wel :smile:

Thank u very much, @cgartland