Assuming you don't have a KK Keyboard and also assuming that you use automap.
Using automap with KK is a little tricky, but I was able to get it going.
https://www.native-instruments.com/forum/threads/how-to-use-automap-with-komplete-kontrol-software.258084/ The gist is that you need to move the KK dll out of your normal VST locations and put it somewhere else that can be seen by Sonar and Automap. Enable Automap for the moved DLL and then scan with Sonar.