The "CommandBegin event" could be used to do somthing befor an Vault Commans is executes. But if you want to check somthing to allow ore prevent the execution of the command you are not able to cancle the command if the ckeck is negative.
So here is my Idea :
Enhance the Command begin event with an cancle option.
See here also my post https://forums.autodesk.com/t5/vault-customization/prevent-command-execute-by-using-commandbegin-eve...
Regards Gerhard