Try this following macro.it will unlock all view focus on the sheet.
Dim swApp As SldWorks.SldWorks
Dim swModel As SldWorks.ModelDoc2
Dim swDraw As SldWorks.DrawingDoc
Dim swView As SldWorks.View
Dim swBaseView As SldWorks.View
Dim bRet As Boolean
Set swApp = Application.SldWorks
Set swModel = swApp.ActiveDoc
Set swDraw = swModel
Set swView = swDraw.GetFirstView
Do While Not swView Is Nothing
swView.FocusLocked = False
Set swView = swView.GetNextView
Let me know if you have any query.
It not work... The frame remain somewhere between normal and focus... it's annoying!... I succeeded inserting a point in view and then wiping it...
You can also try the following to deactivate the view
You can double click on view to switch between pink and orange outlines.