Table of Contents

CadLoadedPlugin

from OpenCAD2D.Plugins import CadLoadedPlugin

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

A plugin CadPluginManager knows in this session: where it was loaded from, whether it is loaded now, whether it lies in the plugin folder or is on the startup list, and the plugin itself while it is loaded.

Properties and fields

Assemblies

.NET

@property
def Assemblies(self) -> System.Collections.Generic.IReadOnlyList[System.Reflection.Assembly] | None

Gets the assemblies loaded for it while it is loaded; null once it is unloaded.

IconPath

.NET

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

Gets the full path of the icon its manifest names, beside its manifest; null where it names none.

IsInstalled

.NET

@property
def IsInstalled(self) -> bool

Gets whether it lies in the plugin folder (a .dll there, or a folder of .dll files at any depth), and so is loaded at every start.

IsLoaded

.NET

@property
def IsLoaded(self) -> bool

Gets whether it is loaded.

IsSource

.NET

@property
def IsSource(self) -> bool

Gets whether it is given as C# source (a folder with a .csproj), compiled when it loads.

IsTrusted

.NET

@property
def IsTrusted(self) -> bool

Gets whether its path lies in a trusted folder.

LoadAtStartup

.NET

@property
def LoadAtStartup(self) -> bool

Gets whether it is on the startup list, loaded at every start.

Manifest

.NET

@property
def Manifest(self) -> CadPluginManifest | None

Gets the manifest; null for a bare .dll with no plugin.json beside it.

Name

.NET

@property
def Name(self) -> str

Gets the name: the manifest's, or the .dll's without its extension.

Path

.NET

@property
def Path(self) -> str

Gets the full path it is loaded from: a .dll, or the folder of a plugin.

Plugin

.NET

@property
def Plugin(self) -> CadPlugin | None

Gets the plugin while it is loaded; null once it is unloaded.

Methods

ToString

.NET

def ToString(self) -> str