Digi21.DigiNG.Plugin
The NuGet package Digi21.DigiNG.Plugin contains the reference assembly Digi21.DigiNG.Plugin.dll: static classes connecting an extension to Digi3D.AI (drawing window, drawing file, panes, status bar) and types for writing extensions: commands, menu items, search providers and dynamic database properties. The package depends on Digi21.DigiNG 26.0.0.
The package contains only the reference assembly, for compilation. At runtime, the assembly installed by Digi3D.AI is used. The extension tutorial explains how to create and load an extension.
Package manager
Install-Package Digi21.DigiNG.Plugin -Version 26.0.0
.NET CLI
dotnet add package Digi21.DigiNG.Plugin --version 26.0.0
Package reference
<PackageReference Include="Digi21.DigiNG.Plugin" Version="26.0.0" />
Namespaces
| Namespace | Contents |
|---|---|
| Digi21.Digi3D | Digi3D.AI application: results window, status bar, panes, sounds and notification balloons. |
| Digi21.DigiNG | Active drawing window: drawing file, reference files, command stack and entity selection. |
| Digi21.DigiNG.Plugin.Command | Commands: Command base class, registration attributes and event data. |
| Digi21.DigiNG.Plugin.Databases | Dynamic properties: default database field values calculated by the extension. |
| Digi21.DigiNG.Plugin.Menu | Drawing window menu items that execute extension commands. |
| Digi21.DigiNG.Plugin.Search | Search panel providers. |
| Digi21.DigiNG.Plugin.TaskPanel | Task panel tasks. |
Extension types and where they are registered
| Extension type | .NET type | How Digi3D.AI loads it |
|---|---|---|
| Command | Class derived from Command with CommandAttribute | On startup, from HKEY_LOCAL_MACHINE\SOFTWARE\Digi21\Digi3D.NET\DigiNG\Extensiones\Commands, or through LOAD_ASSEMBLY. |
| Menu item | CommandInMenuAttribute on a command | With the command. |
| Search provider | Class implementing ISearcher with SearcherAttribute | On startup, from HKEY_LOCAL_MACHINE\SOFTWARE\Digi21\Digi3D.NET\DigiNG\Extensiones\SearchProviders. |
| Dynamic property | Class implementing IDynamicProperty with DynamicPropertyAttribute | On startup, from HKEY_LOCAL_MACHINE\SOFTWARE\Digi21\Digi3D.NET\DigiNG\Extensiones\DynamicPropertyProviders. |
In all three registry keys, the name of each string value is the DLL's full path. LOAD_ASSEMBLY only registers commands: search providers and dynamic properties are only loaded on startup.