Table of Contents

CadShortcuts

from OpenCAD2D import CadShortcuts

class CadShortcuts(System.Object) · CadShortcuts in the .NET reference

The shortcuts of the presenter as data, which Global settings › Shortcuts replaces: the aliases of the commands (M for MOVE) and what each key does (F3 toggles OSNAP, Ctrl+Z runs U). The defaults are AutoCAD's (A12 in the plan), except Ctrl+2, which runs DRAWINGS, and Ctrl+3, which runs RIBBON, where AutoCAD 2021 runs ADCENTER and TOOLPALETTES.

Constructors

__init__

.NET

def __init__(
    self,
    aliases: System.Collections.Generic.IEnumerable[System.Collections.Generic.KeyValuePair[str, str]],
    keys: System.Collections.Generic.IEnumerable[System.Collections.Generic.KeyValuePair[str, str]],
) -> None

Makes a set of shortcuts.

Properties and fields

Aliases

.NET

@property
def Aliases(self) -> System.Collections.Generic.IReadOnlyDictionary[str, str]

Gets the aliases, each to the name of a command, letters of either case the same; listed in alphabetical order, capitals and small letters alike.

Default

.NET

Default: ClassVar[CadShortcuts]

Gets AutoCAD's own: the aliases and keys of the table A12 of the plan.

Keys

.NET

@property
def Keys(self) -> System.Collections.Generic.IReadOnlyDictionary[str, str]

Gets what each key does, as "F3" to "OSNAP" and "Ctrl+Z" to "U"; listed in alphabetical order, capitals and small letters alike.