macro to unlock view position

Need a macro to lock and unlock the view position of the drawing view instead of doing manually (below step).

  • Lock View Position allows you to fix the drawing view in place. Right-click anywhere in the drawing view and select Lock View Position.
SolidworksApi/macros