KufCad

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.

PageWhat it covers
KufLISPLoading .lsp files (APPLOAD), security, your first command, LISP on the command line
DCL dialogsDialogs built by LISP with DCL
KufVBAVBA macros: VBAIDE, VBAMAN, VBARUN, VBASTMT
C# plugins (KufNET)NETLOAD, NETLIST
.scr scriptsRun a list of commands from a file (SCRIPT)
MCP for AILet 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).