I'm still new to sonar but in cubase you can map note information from an external device into a command for most anything.
But it is positional in cubase, not sure about sonar.
So if you set it up to control things in Guitar Rig and it's the 4 plugin on the bus then you add another plug in and make GR the 5th position you have to reconfigure it.
You need to find out what messages the pedal is capable of sending then find out what messages the plug responds to etc.
A box like is made by midi solutions can convert one midi message into another one. Like my yamaha pedal sends program changes or CC's but the MSbox converts that to notes which cubase converts to commands.
I use it to change cursor tools.