Table of Contents

GlobalAutoCorrection

from OpenCAD2D import GlobalAutoCorrection

class GlobalAutoCorrection(System.Object) ยท GlobalAutoCorrection in the .NET reference

A command name typed wrongly and the command typed next, with how many times that has happened: once it has happened GlobalSettings.AutoCorrectAfter times, the command line offers the command first when the misspelling is typed again, as AutoCAD's AutoCorrect does. LIEN typed three times, each followed by LINE, has LINE offered for LIEN.

Constructors

__init__

.NET

def __init__(self, typed: str, command: str, count: int) -> None

Makes a correction.

Properties and fields

Command

.NET

@property
def Command(self) -> str

Gets the command typed after it, in capitals.

Count

.NET

@property
def Count(self) -> int

Gets how many times the misspelling was followed by the command.

IsRemembered

.NET

@property
def IsRemembered(self) -> bool

Gets whether it has happened often enough to be offered at the default of GlobalSettings.AutoCorrectAfter times; the settings offer it after their own GlobalSettings.AutoCorrectMistypes.

Typed

.NET

@property
def Typed(self) -> str

Gets the misspelling, in capitals.