Midi routing from within a VST plugin is not (yet) possible.
There have been tons of topics that highlighted this issue and requested a solution.
So far the most common mentioned was using EnergyXT and load the plugins that you want to send Midi from to resolve it.