Drafting views to new family type

Here is my graph:

Essentially what happens is that I have another script that renames our drafting views, and I’d like this one to sort them into view family types based on their names. I haven’t gotten to the bottom portion yet with the families based on the sheet names. I’ve tried the method you used above, but it doesn’t seem to have any effects. The view type family is created, but none of the views are moved to the corresponding family type. I don’t receive any errors when running the script, so I believe I may not have the correct custom nodes inserted. Thank you for any help you can provide!