Guides
The command line
How commands, options, defaults and scripts work.
Everything in Cota is a command. Type its name (or an alias: L for LINE, C for CIRCLE, M for
MOVE…) and press Enter or Space. While you type, the command line suggests matching
commands; Tab completes the suggestion. Menus and toolbars run the same commands.
A command asks questions in the command line, for example:
Specify center point for circle or [3P/2P/Ttr (tan tan radius)]:- Options are in square brackets. Type the capitalized letters (
3P,T) or click the option. - The default is in angle brackets,
<10.0000>: press Enter to accept it. - Enter (or Space, or a right-click) finishes the current step. Only prompts for free text (a text, a block, layer or file name) take Space as a character; options and numbers never do.
- Esc cancels the command.
- Enter on an empty command line repeats the last command.
- ↑ and ↓ walk through the command history.
You never need to click the command line: typing anywhere in the window sends the keys there (unless you are typing in another field or a dialog is open).
Scripts: several commands at once#
A script is a list of inputs that answer the prompts in order, as if you typed them: separate them with spaces or
new lines, write "" for an empty Enter and put text with spaces in double quotes. When a command ends, the next
input starts another one.
CIRCLE 50,50 20
RECTANGLE 0,0 @100,60
TEXT 10,70 5 0 "Base plate" ""Paste a script in the command line (Ctrl+V, when no objects are copied) or run SCRIPT to
type it, load a .scr file or copy a link that shares it. The whole script is one undo step. If an input is
rejected, the script stops there and tells you which one. A shared link only shows the script: it runs when you
press Run.
See also: SCRIPT · Command reference