Table of Contents

Class CadCommandRegistry

Namespace
OpenCAD2D
Assembly
OpenCAD2D.Core.dll

The commands a session knows, by name, and the aliases that reach them. CreateDefault() gives the commands of C2 under AutoCAD's names and aliases; a plugin adds its own with Add(CadCommand).

public sealed class CadCommandRegistry
Inheritance
CadCommandRegistry
Inherited Members

Constructors

CadCommandRegistry()

Makes a registry with no command and AutoCAD's aliases.

Properties

Commands

Gets the commands in ordinal order of their names.

Shortcuts

Gets or sets the aliases and keys; AutoCAD's until replaced, and again when set to null.

Variables

Gets the system variables SETVAR knows, and a name typed alone reaches where no command has it, in ordinal order of their names: those of CreateDefault(), kept in the drawing or by the session, and those a window adds.

Methods

Add(CadCommand)

Adds a command, or replaces the one of its name.

AddVariable(CadSystemVariable)

Adds a system variable, or replaces the one of its name, as the window replaces ORTHOMODE with its status bar's ORTHO.

CreateDefault()

Makes a registry of the commands of C2, under AutoCAD's names: the view, edit and draw commands, SETVAR and the system variables the drawing and the session keep.

Find(string)

Finds the command a typed name or alias names, letters of either case the same; a name wins over an alias.

FindVariable(string)

Finds the system variable a typed name or alias names, letters of either case the same: LTS names LTSCALE.

Remove(string)

Takes a command out.