Table of Contents

Method Attach

Namespace
OpenCAD2D.Plugins
Assembly
OpenCAD2D.Core.dll

Attach(CadCommandRegistry)

Adds the commands of the loaded plugins to a registry, and those of every plugin loaded later, with PLUGINLOAD (alias NETLOAD), PLUGINUNLOAD and PLUGINRELOAD, which ask on the command line for a path or a name. A command the registry has already is left, so that the window's own PLUGINLOAD, which shows a file dialog, can be added first.

public IReadOnlyList<string> Attach(CadCommandRegistry registry)

Parameters

registry CadCommandRegistry

The registry of a drawing's command line.

Returns

IReadOnlyList<string>

The commands and aliases left out as taken, a line each.

Exceptions

ArgumentNullException

Thrown when the registry is null.