CADEx

CommandMethod

Short answer

The .NET attribute you place on a method to expose it as a typeable AutoCAD command after NETLOAD.

[CommandMethod("MYCMD")] is the C# attribute that registers a method as an AutoCAD command. After NETLOAD reflects over the assembly, the user can type MYCMD at the AutoCAD command line to invoke it. Variants set command flags ([CommandMethod("MYCMD", CommandFlags.Modal)]) or scope the command to a group. Most marketplace plugins ship dozens of CommandMethods grouped under a single global name prefix.

Browse related listings

AutoCAD .NET Plugins (C# / VB.NET)

Verified .NET plugins for AutoCAD and the AutoCAD verticals. NETLOAD-ready DLLs and one-click .bundle installers, with explicit AutoCAD version compatibility on every listing.

Related terms

.NET plugin

A managed assembly (C#/VB.NET DLL) that uses Autodesk's .NET API to add commands and behaviour to AutoCAD or Civil 3D.

NETLOAD

The AutoCAD command that loads a managed .NET plugin DLL into the running session.