Table of Contents

Method Load

Namespace
OpenCAD2D.Plugins
Assembly
OpenCAD2D.Core.dll

Load(string)

Loads a plugin for this session, as PLUGINLOAD and NETLOAD do: from a .dll (with the plugin.json beside it, where there is one), or the folder of a plugin. Its commands are added to every registry attached. Refused, with the reason, where the path is outside the trusted folders and not confirmed, the plugin needs a newer API, a plugin of its name or path is loaded already, or it has no command.

public CadPluginResult Load(string path)

Parameters

path string

The path.

Returns

CadPluginResult

What came of it.

Exceptions

ArgumentNullException

Thrown when the path is null.