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
@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
@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
@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
@property
def IsLoaded(self) -> bool
Gets whether it is loaded.
IsSource
@property
def IsSource(self) -> bool
Gets whether it is given as C# source (a folder with a .csproj), compiled when it loads.
IsTrusted
@property
def IsTrusted(self) -> bool
Gets whether its path lies in a trusted folder.
LoadAtStartup
@property
def LoadAtStartup(self) -> bool
Gets whether it is on the startup list, loaded at every start.
Manifest
@property
def Manifest(self) -> CadPluginManifest | None
Gets the manifest; null for a bare .dll with no plugin.json beside it.
Name
@property
def Name(self) -> str
Gets the name: the manifest's, or the .dll's without its extension.
Path
@property
def Path(self) -> str
Gets the full path it is loaded from: a .dll, or the folder of a plugin.
Plugin
@property
def Plugin(self) -> CadPlugin | None
Gets the plugin while it is loaded; null once it is unloaded.
Methods
ToString
def ToString(self) -> str