Table of Contents

CadPluginCommand

from OpenCAD2D.Plugins import CadPluginCommand

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

One command of a plugin: its name, alias and description as its attribute gives them, and the command the registry runs.

Properties and fields

Alias

.NET

@property
def Alias(self) -> str | None

Gets the alias, in capitals, as NC; null for none.

Command

.NET

@property
def Command(self) -> CadCommand

Gets the command a registry runs: the plugin's method, one undo step a run.

Description

.NET

@property
def Description(self) -> str | None

Gets what the command does; null where the plugin does not say.

Name

.NET

@property
def Name(self) -> str

Gets the name, in capitals: NUMCIRCLES.

Plugin

.NET

@property
def Plugin(self) -> CadPlugin

Gets the plugin.

Methods

ToString

.NET

def ToString(self) -> str