I’ve set up a definition that renames views on sheets with their respective sheet number as prefix.
The script simply puts together Sheet Number and View Name and sets the parameter - quite simple and probably too simple, as already renamed views will get the sheet number added over and over again each time I run the definition. So what I want to do is to get Dynamo to check whether a sheet number already is contained in the view name. I couldn’t find any nodes for this, so I’ve turned to Python without any luck so far, as the script fails with the flattened sheet.views as input. That being said, I think I’m also missing some range-thing in the script.
Any thoughts on how to solve this with/without Python?