Using (Transaction t = new Transaction(doc,"Set View Template"))ĭoc.ActiveView.ViewTemplateId = viewTemplate. Where v.IsTemplate = true & v.Name = "MyViewTemplate" View viewTemplate = (from v in new FilteredElementCollector(doc) Starting from scratch is way too much work for no reason, so your best bet is to use the Default Revit template. public void ApplyViewTemplateToActiveView()ĭocument doc = How do I export View Templates from this article's downloadable files To export the View Templates from our project file to yours, first you must have both files open in Revit. 1- START WITH THE REVIT OOTB TEMPLATE When creating your template, you have the option to start from scratch or to use the Revit out-of-the-box template as a starting point. I’m looking to devise a View Template Compare tool and access to the owner and creator of them. I am trying to list the view template’s properties so we can compare them with another old template.įor example what model elements are hidden or have overrides in a given template or which Revit links have been hidden or overridden in a given template.
0 Comments
Leave a Reply. |