CADEx

How to NETLOAD a .NET Plugin in AutoCAD

AutoCADCivil 3D4 min
Short answer

To load a .NET plugin in AutoCAD, type NETLOAD at the command line, browse to the .dll, and click Open. AutoCAD reflects over the assembly and registers every class marked with [CommandMethod]. To load on every AutoCAD startup, package the DLL as an AutoCAD .bundle or register it under HKCU\Software\Autodesk\AutoCAD\R<ver>\Applications.

Steps

1

Confirm the DLL targets your AutoCAD version

AutoCAD .NET plugins are version-locked to the AcDbMgd/AcMgd they were built against. A plugin built for AutoCAD 2024 may not load in 2025 without a rebuild. Check the seller's compatibility notes before loading.

2

Run NETLOAD

At the AutoCAD command line, type NETLOAD and press Enter. The Choose .NET Assembly dialog opens. Browse to your .dll and click Open.

3

Handle the security prompt

If the folder isn't in Trusted Locations, AutoCAD shows a security dialog. Click Load Once for a trial, or add the folder permanently under Options → Files → Trusted Locations and click Always Load.

4

Run the command

Type the command name added by the plugin (look for [CommandMethod("NAME")] in the source or seller's docs) and press Enter.

5

Set up auto-load (optional)

Drop the DLL into an AutoCAD .bundle folder, or add a registry key at HKCU\Software\Autodesk\AutoCAD\R<ver>\ACAD-<langID>\Applications\YourPlugin with LOADCTRLS=2, LOADER='C:\path\to\YourPlugin.dll'. AutoCAD auto-NETLOADs on next launch. Most commercial installers do this for you.

Frequently asked questions

I get 'Cannot load assembly'. What's wrong?

Three common causes: (1) the DLL targets a different AutoCAD version (rebuild against the correct AcDbMgd/AcMgd); (2) the DLL has unresolved dependencies — every referenced DLL must be in the same folder; (3) the DLL was downloaded over a network and Windows blocked it (right-click → Properties → Unblock).

Will NETLOAD warn me if a plugin is malicious?

AutoCAD only warns about untrusted load locations; it does not scan plugin code. Buy plugins from vendors that publish what's inside (e.g. CAD Exchange runs automated security scans on every uploaded DLL before listing). Never NETLOAD a DLL from an unknown source.

How do I unload a .NET plugin?

You can't. AutoCAD's .NET hosting does not support assembly unload — you have to close AutoCAD and reopen without loading the DLL.

Where does NETLOAD log errors?

AutoCAD writes load errors to the command line history (press F2 to see it). For deeper diagnostics, attach a debugger or check the Windows Event Viewer Application log.

Does NETLOAD work in AutoCAD LT?

No. AutoCAD LT does not host the .NET runtime. Plugin authors typically ship a LISP fallback for LT users, but the core .NET features won't be available.

Related guides

How to Install a Civil 3D Plugin

Step-by-step install for Civil 3D add-ins, including installer-based bundles, manual NETLOAD, and per-version compatibility checks.

Browse listings

AutoCAD .NET Plugins (C# / VB.NET)

Verified .NET plugins for AutoCAD and the AutoCAD verticals. NETLOAD-ready DLLs and one-click .bundle installers, with explicit AutoCAD version compatibility on every listing.

Related terms

NETLOAD

The AutoCAD command that loads a managed .NET plugin DLL into the running session.

.NET plugin

A managed assembly (C#/VB.NET DLL) that uses Autodesk's .NET API to add commands and behaviour to AutoCAD or Civil 3D.

CommandMethod

The .NET attribute you place on a method to expose it as a typeable AutoCAD command after NETLOAD.

AUTOLOAD

Two related AutoCAD mechanisms for loading plugins on demand: the (autoload) LISP function and the auto-load registry/bundle keys used for .NET DLLs.

Trusted Locations

AutoCAD's allow-list of folders that can load executable code (LISP, .NET, ARX) without a security warning.

ObjectARX

Autodesk's C++ runtime extension SDK for AutoCAD. The lowest-level, highest-performance way to extend AutoCAD.