Need Help Getting My Revit Python Sheet Duplicator to Work
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
All, I am a novice when it comes to Python and Revit API in general, but I'm using a combination of GPT and online resources to build and debug a sheet duplicator button for Revit using RevitPythonShell. It mostly of works. If I duplicate a sheet, it will now duplicate the views on the sheet and locate them on a new sheet so that it looks identical to the first... The first time. It adds the suffix ".1" to the back of the new sheet number and view names. In other words, "architectural floor plan" becomes "architectural floor plan.1" and sheet number A1.0 becomes A1.0.1. That's all well and good, but if I try and duplicate the original sheet a second time, it doesn't work because A1.0.1 already exists and it doesn't know to go to A1.0.2... and so on. Could someone help me fix my code to resolve this issue? My code is attached. Feel free to use if anyone wants it.