Table of Contents

CadCanvasMenuProvider

from OpenCAD2D.Plugins import CadCanvasMenuProvider

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

What a plugin adds to the right-click menu of the canvas, as AutoCAD's object context menu extension does: items after those of the extensions and before the presenter's own, asked with objects selected and no command running; the objects are CadPluginContext.Selected.

Constructors

__init__

def __init__(
    self,
    function: Callable[[CadPluginContext], System.Collections.Generic.IReadOnlyList[CadPluginMenuItem]],
) -> None

Operators and Python protocols

__call__

def __call__(self, context: CadPluginContext) -> System.Collections.Generic.IReadOnlyList[CadPluginMenuItem]