14. Programming and automation
This chapter is about extending and automating KufCad with programs: KufLISP, KufVBA, C# plugins (KufNET), .scr script files and the MCP server for AI assistants.
Most users only load a program someone else wrote; the pages below explain both loading and writing your own.
| Page | What it covers |
|---|---|
| KufLISP | Loading .lsp files (APPLOAD), security, your first command, LISP on the command line |
| DCL dialogs | Dialogs built by LISP with DCL |
| KufVBA | VBA macros: VBAIDE, VBAMAN, VBARUN, VBASTMT |
| C# plugins (KufNET) | NETLOAD, NETLIST |
| .scr scripts | Run a list of commands from a file (SCRIPT) |
| MCP for AI | Let Claude Code, Cursor… drive KufCad |
There is no Visual LISP window (VLIDE): LISP runs on the command line and is loaded from files with APPLOAD. The built-in editor is the VBA IDE (see KufVBA).