Code of sheets

Good morning colleagues.
I would like to know if you can help me to generate this python script to help me to select views directly from the Revit interface, those views fall each one in a corresponding plane, changing the name of the plane and getting that each view is centered in its corresponding plane.
It would help me a lot if you can help me, as I am new to this and I would like to know how to develop this code.

Translated with DeepL Translate: The world's most accurate translator (free version)

There is no way to select views directly from the Revit interface using Dynamo. Using ‘Select View’ node is the best way in Dynamo. Otherwise, you have to create another pop-up window for selection only, but I don’t think it’s better.solution.

The only way i know how to select the views from the revit interface would be like so:
You select the views in your project browser, and then run the script with the currentselection node from springs