Dear Ning,
Thank you for your succinct query 🙂
Yes, you can easily redefine many built-in Revit commands and replace them by your own implementation, which could, for example, just display a message informing the user that the command is not available:
http://thebuildingcoder.typepad.com/blog/2012/06/replacing-built-in-commands-and-their-ids.html
Look at the DisableCommand SDK sample, which disables a command by replacing its implementation with a simple popup message.
I hope this helps.
Best regards,
Jeremy
thanks Jeremy for your drop-by here, yes, i did find that command id from Victor's list via your link, i didn't save it last time so a bit trouble to find right command id.
Dear Ning,
Thank you for your appreciation.
Finding the command id is trivial: just run the command you are afterm terminate Revit, and look at the last entries in the journal file.
Cheers,
Jeremy