Skip to main content

AutoCAD Plugin

The Algomim AutoCAD plugin connects AutoCAD to the AI assistant, letting you create and modify drawings, manage layers, query objects, and automate tasks through conversation.

Supported Versions

  • Autodesk AutoCAD 2023
  • Autodesk AutoCAD 2024
  • Autodesk AutoCAD 2025
  • Autodesk AutoCAD 2026

Installation

1

Download the installer

Download the AutoCAD plugin installer from the Settings page in chat.algomim.com.
2

Close AutoCAD

Make sure AutoCAD is completely closed before installing.
3

Run the installer

Double-click the downloaded .exe file and follow the setup wizard.
4

Start AutoCAD

Launch AutoCAD. The plugin loads automatically.
The plugin installs to %AppData%\Autodesk\ApplicationPlugins\AlgomimAutoCAD.bundle\.

Connecting to Algomim

1

Open a drawing

Open an AutoCAD drawing (or create a new one).
2

Run the connect command

Type ALGOMIM in the AutoCAD command line and press Enter.
3

Get your PIN

In the Algomim web app, start a new chat and click the Connect button (plug icon). Copy the 6-digit PIN.
4

Enter the PIN

Enter the PIN when prompted in AutoCAD. The command line will confirm a successful connection.

What You Can Do

The AI writes C# scripts using the AutoCAD .NET API. Common operations include:

Drawing & Geometry

  • Draw lines, polylines, circles, arcs, and other geometric primitives
  • Create and modify blocks and block references
  • Hatch areas and add dimensions

Layers & Organization

  • Create, rename, and manage layers
  • Set layer colors, linetypes, and properties
  • Move objects between layers

Object Manipulation

  • Select, move, copy, rotate, scale, and mirror objects
  • Modify object properties (color, linetype, lineweight)
  • Explode blocks and join entities

Data & Queries

  • List objects by type or layer
  • Count elements
  • Read and write extended data (XData)
For AutoCAD-specific prompting tips, see AutoCAD Best Practices.

Script Context

When the AI writes C# scripts for AutoCAD, it has access to these context variables:
VariableTypeDescription
docDocumentThe active AutoCAD document
dbDatabaseThe drawing database
edEditorThe editor for user interaction and selection
In AutoCAD, you manage your own transactions. The AI wraps operations in db.TransactionManager.StartTransaction() — changes can be undone with Ctrl+Z.

Troubleshooting

  • Check that the plugin bundle exists in %AppData%\Autodesk\ApplicationPlugins\
  • Restart AutoCAD after installation
  • Type NETLOAD and manually load the Algomim DLL if needed
  • Verify your internet connection
  • Generate a new PIN if the current one expired
  • Check firewall settings for outbound WebSocket connections

Updating the Plugin

Download the latest installer from the Settings page in the Algomim web app and run it. The installer replaces the previous version automatically.