There is nothing in the API to do that. Maybe the CustomCommand has something hidden, but that is a secret of Sparx then. So the only escape is to simulate keyboards clicks. Assign a keyboard shortcut, make the package come to focus (Rep.ShowInProjectView) and send the according keyboard shortcut.