Automate/Record MIDI Device Panels?

Is it not possible to somehow record interactions with a custom made MIDI Device Panel? eg, recording a filter sweep from my midi device panel control?