Follow this solution: Get Write Access
then you can record a simple macro and assign a keystroke: 2016 SOLIDWORKS Help - Assigning a Macro to a Keyboard Shortcut or Mouse Gesture
If that doesn't work, try the code below (in bold) for the macro. I came across the code here <Get write access button - DASSAULT: SOLIDWORKS 3D Design - Eng-Tips >, but it had a syntax error, a missing "End If", and some extraneous definitions at the beginning-- so I changed that:
Dim swApp As Object
Dim Part As Object
Dim boolstatus As Boolean
Dim ReadOnlyState As Boolean 'TRUE= only, FALSE = not
Set swApp = Application.SldWorks
Set Part = swApp.ActiveDoc
ReadOnlyState = Part.IsOpenedReadOnly()
If ReadOnlyState = False Then
ReadOnlyState = True
ReadOnlyState = False
boolstatus = Part.SetReadOnlyState(ReadOnlyState)
sorry, the above is for "Get Write Access" not "Take Ownership"... I know I had a macro set up for the latter at one point, but all my shortcuts were reset...
Retrieving data ...