How I got Maschine working as a controller in Sonar.
Open
NI Controller Editor. Make sure you Maschine is correctly selected.
Goto
Factory Templates dropdown and Select
Mackie Control.
Tick
Host Transport ControlExit the App
Start and open Sonar Project.
Preferences-> Midi > Devices. Make sure
Maschine Studio In is Ticked.
Preferences-> Midi > Control Services:
Click the Add New controller service button
Controler Service = VS-700. Input Port = Maschine Studio In. Output Port = None.
Click OK.
You might not get what you expected with the keybindings, but the behaviours is as intended. Check the keybindings in Native Instruments Control Editor for more.
If anybody has any further customizations to add to the Controller template please post here!