Table of Contents

CadPluginApiAttribute

from OpenCAD2D.Plugins import CadPluginApiAttribute

class CadPluginApiAttribute(System.Attribute) ยท CadPluginApiAttribute in the .NET reference

Says which version of the plugin API an assembly needs at least, as [assembly: CadPluginApi("1.0")]. The presenter refuses to load it, saying why, when its own CadPlugin.ApiVersion is older. An assembly without one is taken as needing 1.0.

Constructors

__init__

.NET

def __init__(self, version: str) -> None

Says the least version of the plugin API the assembly needs.

Properties and fields

Version

.NET

@property
def Version(self) -> str

Gets the least version of the plugin API the assembly needs, as written.