The command line and selecting¶
In Naksha you work mostly at the command line, under the drawing. You type a command, or its short alias, and answer the prompts one by one. The command names and aliases are the ones drafters already type in other CAD programs. This chapter also covers how to select objects, edit them with grips, undo, copy and paste, and change them in the Properties panel.
![The command line: the history shows a circle drawn by typing CIRCLE's 2P option and two points; the prompt now reads "OFFSET Specify offset distance or [Through] <Through>:". Below it, the status bar with GRID, OSNAP and DYN on.](/img/docs/naksha/naksha-command-line.webp)
Typing a command¶
- Type the command's name or its alias, for example
LINEorL. You don't need to click in the box first: typing anywhere over the drawing goes to the command line. - Press Enter or Space.
- Answer the prompt that appears to the left of the box, and press Enter or Space again.
Capital or small letters both work. The history above the box keeps every prompt and what you typed, so you can scroll back and see what happened.
A few common aliases:
| Type | Command |
|---|---|
L |
LINE |
PL |
PLINE |
C |
CIRCLE |
A |
ARC |
REC |
RECTANG |
DT |
TEXT |
E |
ERASE |
M |
MOVE |
CO |
COPY |
O |
OFFSET |
TR |
TRIM |
Z |
ZOOM |
Every command and its aliases are listed in Commands and shortcuts. Press F1 for the same list inside Naksha.
If Naksha doesn't know a word, it says Unknown command "…". If you type a point or a number when no command is running, it says Type a command first, such as L for LINE.
Starting commands from the menus and toolbars¶
The menus and toolbar buttons start the same commands. Menu items show the alias on the right, for example Modify ▸ Trim shows TR. Starting a command from a menu or a button cancels the command that was running.
Answering prompts¶
Each prompt starts with the command's name, then says what it wants:
CIRCLE Specify center point for circle or [3P/2P]:
You can answer in these ways:
| Answer | How |
|---|---|
| A point | Click in the drawing, or type it: 3000,1500 (x,y), @1200,0 (from the last point) or @1500<30 (distance and angle from the last point) |
| A distance | Point the cursor in the direction you want and type the distance, for example 3000 |
| A number | Type it: a radius, a height, an angle in degrees, a count |
| An option | Type the option's capital letters (see below) |
| The default | Press Enter |
In feet and inches, type lengths as 12'6" or 12'-6-1/2"; a plain number is inches. Points and the other ways of drawing to exact sizes are in Drawing accurately.
Options in square brackets¶
Options are listed in square brackets, separated by slashes. Type the capital letters of the option you want, or the whole word:
| Prompt | Type | For |
|---|---|---|
[3P/2P] |
2P |
A circle by the two ends of its diameter |
[Close/Undo] |
C or U |
Close the shape, or undo the last segment |
[Through] |
T |
Offset through a point |
[Select objects/seTtings/Undo] |
T |
Hatch settings (the capital T in seTtings) |
[Blocks/LAyers/All] |
LA |
Purge layers (L alone isn't enough) |
Default values in angle brackets¶
A value in angle brackets is what you get if you just press Enter:
OFFSET Specify offset distance or [Through] <Through>:
ROTATE Specify rotation angle or [Copy/Reference] <0>:
Many defaults are the value you used last time, such as the offset distance or the fillet radius.
Text prompts¶
Some prompts take text, such as the lines of a single-line text, a group's name or a block attribute's value. At these prompts Space types a space, and only Enter ends the line.
Repeating, cancelling and recalling¶
- Repeat the last command: at
Command:, press Enter or Space, or right-click in the drawing. - Cancel: press Esc. The command stops and the history shows
*Cancel*. What it already drew stays. - Clear the selection: with no command running, press Esc.
- Recall what you typed: press the Up arrow for earlier lines, Down to come back. Edit the line if you like, then press Enter.
Right-click¶
A right-click in the drawing is the same as pressing Enter. It ends a selection, accepts a default, finishes a command such as LINE, or repeats the last command at Command:.
Zooming in the middle of a command¶
Turn the mouse wheel to zoom and drag with the middle button to pan, at any prompt. The command carries on where it was.
Selecting objects¶
You can select objects before a command or when the command asks Select objects:.
Picking, windows and crossing windows¶
| To | Do this |
|---|---|
| Select one object | Click it |
| Select what lies wholly inside an area | Click an empty spot and drag (or click again) to the right: a window |
| Select what is inside or crosses an area | Click an empty spot and drag (or click again) to the left: a crossing window |
| Take objects out of the selection | Hold Shift and click them, or Shift with a window |
Objects on layers that are off, frozen or locked can't be selected.
When a command asks Select objects:, each pick adds to the selection, and the history says how many were found, for example 3 found, 7 total. Press Enter (or Space, or right-click) when you have them all.
Selection options at "Select objects:"¶
| Type | Option | What it selects |
|---|---|---|
W |
Window | Objects wholly inside two corners |
C |
Crossing | Objects inside or crossing two corners |
F |
Fence | Objects a line of several points crosses |
WP |
WPolygon | Objects wholly inside a polygon you click |
CP |
CPolygon | Objects inside or crossing a polygon |
ALL |
All | Every object that can be selected |
L |
Last | The last object drawn |
P |
Previous | The objects selected last time |
R |
Remove | From now on, picks take objects out |
A |
Add | Back to adding objects |
For a fence or a polygon, click the points and press Enter to finish it.
SELECT asks Select objects: and keeps the selection for the next command.
Selecting first, then the command¶
Select objects with no command running, then start a command such as MOVE, COPY or ROTATE. The command uses them at once and goes to its next prompt. STRETCH always asks you to select again, with a crossing window, because it needs to know which ends to move.
Select All¶
Edit ▸ Select All (Ctrl+A) selects every object on the current tab that can be selected. Ctrl+A works when the command line box is empty.
Find and replace text¶
Edit ▸ Find… (or FIND) searches the text in the drawing: single-line and multiline text, leader notes, dimension text, attribute values and table cells.
- In Find what, type the text.
- In Find where, choose Entire drawing or Current selection.
- Tick Match case or Find whole words only if you need them.
- Click Find, or press Enter. Each match is listed with its type and layer, and Naksha zooms to it. Click Find again for the next one, or click a match in the list.
- To change text, type the new text in Replace with, then click Replace for the match shown, or Replace All.
- Click Done.
Undo puts replaced text back.
Quick Select¶
Tools ▸ Quick Select… (or QSELECT) selects objects by type and property, for example every circle on the COLUMN layer, or every text that contains BEDROOM.
| Field | What to choose |
|---|---|
| Apply to | Entire drawing, or Current selection when objects are selected |
| Object type | Multiple (any type), or one type found in the drawing |
| Properties | Color, Layer, Linetype, Lineweight, Contents, Height, Length, Area, Radius or Name |
| Operator | = Equals, <> Not Equal, > Greater than, < Less than, * Wildcard Match, or Select All |
| Value | The value to compare with. The hint under it says what to type. |
- A colour is a number (1 red, 2 yellow… 7 white), ByLayer or ByBlock.
- A lineweight is in hundredths of a millimetre: 25 is 0.25 mm.
- Area is in square metres, or square feet in a feet-and-inches drawing. Length and radius are in the drawing's units.
- In Contents and Name,
*and?are wildcards.
Choose Include in new selection set or Exclude from new selection set. Tick Append to current selection set to add to what is already selected. Click OK.
Groups¶
A group is a set of objects that select together: click one and you get them all.
- Select the objects.
- Go to Tools ▸ Group, or type
G. The objects become an unnamed group.
If nothing is selected, GROUP asks Select objects or [Name/Description]:. Type N to give the group a name first.
To take a group apart, go to Tools ▸ Ungroup (or UNGROUP) and select it.
Ctrl+Shift+A turns group selection off and on. While it is off, a click picks one object out of a group. The history shows <Groups off> or <Groups on>.
Undo and redo¶
| To | Do this |
|---|---|
| Undo the last command | Ctrl+Z, the Undo button, Edit ▸ Undo, or type U |
| Redo what you undid | Ctrl+Y or Ctrl+Shift+Z, the Redo button, Edit ▸ Redo, or type REDO |
The history says what was undone, for example Undo LINE. Inside LINE or PLINE, Ctrl+Z undoes the last segment and the command carries on.
Cut, copy and paste¶
Naksha's clipboard holds objects. It stays while Naksha is open, so you can copy from one drawing, open another, and paste into it.
| Command | Menu | Keys | What it does |
|---|---|---|---|
CUTCLIP |
Edit ▸ Cut | Ctrl+X | Copies the selected objects to the clipboard and removes them |
COPYCLIP |
Edit ▸ Copy | Ctrl+C | Copies the selected objects. Their base point is the lower-left corner of the selection. |
COPYBASE |
Edit ▸ Copy with Base Point | Ctrl+Shift+C | Copies the selected objects and asks Specify base point: |
PASTECLIP |
Edit ▸ Paste | Ctrl+V | Asks Specify insertion point: and puts the base point there |
PASTEBLOCK |
Edit ▸ Paste as Block | Ctrl+Shift+V | Pastes the objects as one block (named A$C1, A$C2 and so on) |
PASTEORIG |
Edit ▸ Paste to Original Coordinates | Pastes the objects at the same coordinates they were copied from |
If nothing is selected, Cut, Copy and Copy with Base Point ask Select objects: first. If the clipboard is empty, Paste says so.
Blocks the copied objects use come with them. If the other drawing already has a block of the same name, it keeps its own.
Ctrl+C and Ctrl+V work on objects only when you aren't using them on text in the command line box: with text selected in the box, Ctrl+C copies that text, and with text typed in the box, Ctrl+V pastes text.
Erasing¶
Select the objects and press Delete (or Backspace), or go to Edit ▸ Erase, or type E. With nothing selected, ERASE asks Select objects:.
Editing with grips¶
When you select objects with no command running, small blue squares, the grips, appear at their ends, midpoints, centres and corners.
- Click a grip. It becomes hot and the prompt reads
** STRETCH ** Specify stretch point or [Base point/Copy/eXit]:. - Move the cursor and click the new place, or type a point. The grip moves there and the object changes with it.
Before you click, press Enter or Space to change what the grip does. Each press moves to the next one:
| Mode | What the point (or number) does |
|---|---|
| STRETCH | Moves the grip, reshaping the object |
| MOVE | Moves the selected objects |
| ROTATE | Turns them about the grip. Type an angle, or click. |
| SCALE | Scales them about the grip. Type a factor, or click. |
| MIRROR | Mirrors them about a line from the grip to the point |
| Type | Option | What it does |
|---|---|---|
B |
Base point | Asks for a new base point, instead of the grip |
C |
Copy | Makes copies, as many as you click, and leaves the originals |
X |
eXit | Ends grip editing |
Undo puts a grip edit back like any command.
Double-clicking¶
Double-click an object with no command running to edit it:
- text, multiline text, a leader note, a dimension or an attribute definition opens its text editor
- a block with attributes opens the attribute editor
On a layout, double-click inside a viewport to work in the model through it, and outside to go back to the sheet. See Layouts and plotting.
The Properties panel¶
The Properties tab on the right shows what is selected and lets you change it. Type PR (or PROPERTIES) to bring it to the front.
- The top line says what is selected: No selection, the type of one object (such as Line), or the number of objects and their type.
- General has Layer, Colour, Linetype and Lineweight. Change one and every selected object changes. When the selected objects differ, the box shows Varies.
- Geometry shows the object's sizes and position, such as a line's length or a circle's radius. Type a new value in a box and press Enter. Esc puts the old value back. Values that are shown as plain text can't be changed here.
- Attributes appears for a block with attributes, with a box for each value.
- In Colour, Select colour… opens the full set of 255 colours.
With nothing selected, the heading reads New objects, and Current layer, Colour, Linetype and Lineweight set what new objects get.
Layers, colours, linetypes and lineweights are explained in Layers and properties.