Renaming View Templates

Hello to all,
is it possible to rename view templates using Dynamo?

Thanks in advance!

Yup,

1 Like

Thanks Myr!
It worked perfectly! :clap::clap::clap:

Is there a way to do this as a “find & replace” like with view names/schedule names/etc…:

1 Like

@melissa.evans Just done same thing this morning…

here is the phyton code (credits to the original uploader of the code):

import clr
clr.AddReference(‘RevitAPI’)
from Autodesk.Revit.DB import*
clr.AddReference(‘RevitServices’)
from RevitServices.Persistence import DocumentManager
from RevitServices.Transactions import TransactionManager

doc = DocumentManager.Instance.CurrentDBDocument

views = FilteredElementCollector(doc).OfClass(View)
appliedtemplates = [v.ViewTemplateId for v in views]
templates = [v.Id for v in views if v.IsTemplate == True]

OUT = templates

i just tweak it a bit to suit my needs

3 Likes