CadPluginCommandEntry
from OpenCAD2D.Plugins import CadPluginCommandEntry
class CadPluginCommandEntry(System.Object) ยท CadPluginCommandEntry in the .NET reference
One command a plugin.json declares, written as a name ("RING") or as an object that says more: { "name": "RING", "alias": "RG", "description": "Draws a ring", "usesSelection": true }. A Python tool declares its commands here so that the app shows them, and starts the tool's process only when one is used.
Properties and fields
Alias
@property
def Alias(self) -> str | None
Gets the alias typed in place of the name, in capitals; null where none is declared.
Description
@property
def Description(self) -> str | None
Gets what the command does, in a line; null where none is declared.
Name
@property
def Name(self) -> str
Gets the name of the command, in capitals.
UsesSelection
@property
def UsesSelection(self) -> bool
Gets whether the command takes the objects selected before it starts, as MOVE does.