Buckets:
| 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. |
Xet Storage Details
- Size:
- 1.04 kB
- Xet hash:
- 8143b486f8f91d8cdf5aea23bfa4ab02186111231b005c2a861c61b38907beb7
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.