I use Maschine with Sonar, but so far I just work 100% in Maschine until the project is mostly sketched out, then export all tracks and then import into Sonar. After that I'm 100% in Sonar.
I found a video about using Maschine within Sonar - it's a bit old but probably still relevant:-
https://www.youtube.com/watch?v=DylihYvYuUI Apparently the latest version of Maschine - 2.6.5, opens up things up a bit more for working with DAWs. My understanding is that when you're loading new groups you have the option to retain your midi routing/audio routings (or not).
I don't think using Maschine within Sonar is seamless at the moment; NI have spent some time and effort getting it to play nicely with Logic, Cubase and Ableton, but that's it. As I said up front, this is not the way I work at the moment. Things like quantize for instance - it seems you either do this in Sonar with the Sonar quantize or in Maschine with the Maschine quantize, but then does that mean Maschine and Sonar are out of sync? I don't know.
Hope this helps.