KufCad

Customizing aliases (PGP)

Menu: K ▸ Command Aliases…Command: ALIASEDIT

Command aliases live in the alias.pgp file (see Configuration folder). Each line looks like:

L,         *LINE
REC,       *RECTANG

The first column is the alias and the second the command (with a * before the command name). Blank lines and non-alias parts (for example the operating-system commands at the top of the file) are preserved.

The Edit Command Aliases dialog

The dialog has two tabs: Command Aliases and Shell Commands. 1 the Sea
Figure 2.32 — The dialog has two tabs: Command Aliases and Shell Commands. 1 the Search box filters the list; 2 Add… adds a new alias; 3 Edit changes a row; 4 Remove deletes it. The Status column says whether the target command is recognized (OK / Unknown command).
The button row at the bottom: Export… / Import… (save / load a .pgp fi
Figure 2.33 — The button row at the bottom: Export… / Import… (save / load a .pgp file), Restore Defaults (back to the default list), Apply, Cancel, OK.

Adding an alias

  1. Open K ▸ Command Aliases….
  2. Click Add…: the Add Alias box appears. Enter the Alias (for example LL) and the Command (for example LINE), click Save.
  3. Click OK in the main dialog. From now on typing LL and Enter runs LINE.

You can also edit alias.pgp directly in a text editor and then use Import… to load it again.