Does anyone know if the 2013 API allows view templates to be applied to views?
Does anyone know if the 2013 API allows view templates to be applied to views?
Yes it does. Check out "DB.View.ApplyViewTemplateParamaters" and DB.ViewTemplateApplicationOPtion"
Cheers
Phillip
Thanks very much Philip, I'll check that out.
I thought this would be more simple...
I expected something like this to work...
Dim vTemplate as Autodesk.Revit.DB.View = someView_WhichIsATemplate
Dim targetView as Autodesk.Revit.DB.View = someView
targetView.ApplyViewTemplateParameters(vTemplate)
But, it doesn't work, and Revit throws an exception. Can someone please explain how to assign view templates to views?
I work in C#, so I can't test it but I would suggest this:
Dim vTemplate as Autodesk.Revit.DB.View = someView_WhichIsATemplate
Dim targetView as Autodesk.Revit.DB.View = someView
targetView.ViewTemplateId = vTemplate.Id
Hi,
I've posted code showing how to do this at http://boostyourbim.wordpress.com/20...view-template/
Regards
Harry