Application: DisableCommand
Revit Platform: All
Revit Version: 2013.0
First Released For: 2013.0
Programming Language: C#
Skill Level: Beginning
Category: Basics
Type: ExternalApplication

Subject: Command replacement
Summary: 
Disable a command by replacing its implementation with a simple popup message

Classes: 
•	Autodesk.Revit.UI.IExternalApplication
•	Autodesk.Revit.UI.RevitCommandId
•	Autodesk.Revit.UI.AddInCommandBinding
•	Autodesk.Revit.UI.UIControlledApplication

Project Files: 
Application.cs
The external application.  

Description: 
This sample overrides the Design Options command to prevent users from accessing it.
•	A RevitCommandId is found to match the journal name of the command.
•	An AddInCommandBinding is created for this command id.
•	An alternate implementation is provided for the command binding.

Instructions: 
Open Revit.
Open or create a project.
Choose the Design Options button on the Manage tab.
A popup explains that the command is disabled.