Clean Up Your Revit Projects: Remove Unused View Templates [pyRevit]

Опубликовано: 02 Июль 2026
на канале: Erik Frits
2,379
30

📙 Get Free E-Book: Beginner's Guide to Revit API:
https://learnrevitapi.com/ebook?utm_s...

🎁 Create your own extension in 2 min with pyRevit StarterKit
https://learnrevitapi.com/pyrevit-sta...

--------------------------------------------------
📝 Video Summary:

Check out the new tool in EF-Tools: Purge ViewTemplates and also learn how it works behind the scenes. We will code it together from scratch so you can understand all the steps and adjust it to your own needs.

--------------------------------------------------
🎬 Chapters:
0:00 How to Purge View Templates?
0:30 EF-Tools: Purge View Templates
1:10 How to code it?
1:40 Get All Views and ViewTemplates
2:40 Get Used ViewTemplates
3:50 Get Unused ViewTemplates
5:00 Ensure unused ViewTemplates
5:50 Select ViewTemplates to Purge
7:00 Bug in Code
7:45 Ensure ViewTemplates Selected
8:50 Purge Unused ViewTemplates
12:05 Test the tool
12:40 Summary

--------------------------------------------------
⌨️ Happy Coding!

Tags: #LearnRevitAPI #RevitAPI #pyRevit