Purpose
This document explains how to create a command in electrical applications.
Scope
Following activities are within the scope of this document:
- Create a new Command
- Add the command to the application
- Execute the command
- Remove the command from the application
- Add automatically a command in a Ribbon Button using a specialized C# library.
- Warning
- Command must be removed when unloading your add-in otherwise command remains in the list of commands and calling it can raise an exception.
This page contains the subsections Add a command sample in C++ and Add a command sample in C#.