{"type":"video","version":"1.0","html":"<iframe src=\"https://www.loom.com/embed/5806a8fb05cd476bae078042e0664031\" frameborder=\"0\" width=\"1920\" height=\"1440\" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>","height":1440,"width":1920,"provider_name":"Loom","provider_url":"https://www.loom.com","thumbnail_height":1440,"thumbnail_width":1920,"thumbnail_url":"https://cdn.loom.com/sessions/thumbnails/5806a8fb05cd476bae078042e0664031-1d0b2c6e466d88f6.gif","duration":541.5,"title":"Day 03 - NameSwapper - 04 Cod","description":"In this video, I walk you through the exciting process of coding a proof of concept for a tool called the zero-free name swapper in PyRevit. We start by creating a button, selecting views, and defining simple renaming rules with prefixes and suffixes. I demonstrate how to iterate through selected views to change their names while ensuring we operate within a transaction to protect our Revit project. I encourage you to follow along by testing the tool with your own view names and replacing them as needed. Finally, I invite you to think about how we can enhance the user interface and functionality in the next steps."}