Hi @zoe.baker-bushby
This is a timely question, as I have a project I'm beginning to work on that has a request to do this.
Here is a simple iLogic rule to toggle the edit scope.
Dim oDoc As Document = ThisDoc.Document
oModelStates = oDoc.ComponentDefinition.ModelStates
If oModelStates.MemberEditScope = MemberEditScopeEnum.kEditAllMembers Then
oModelStates.MemberEditScope = MemberEditScopeEnum.kEditActiveMember
Else
oModelStates.MemberEditScope = MemberEditScopeEnum.kEditAllMembers
End If
I hope this helps.
Best of luck to you in all of your Inventor pursuits,
Curtis
http://inventortrenches.blogspot.com