View position lock

Does anyone know of or have a macro that they are willing to share that detects the view on the current sheet and locks all view positions ?

Thank you in advance.

Peter

SolidworksApi macros