Blocks, libraries and references¶
A block is a group of objects saved under a name and placed as one object, as many times as you need: a door, a WC, a column, a title block. Naksha comes with a library of blocks in standard Indian sizes. You can also make your own, give them attributes to fill in, and bring in other drawings, pictures and PDF pages as references.
Block commands are in Draw ▸ Block and Insert ▸ Block…. References are in the Insert menu.
Making a block¶
- Draw the objects, at full size. Draw them on layer 0 if the block should take the colour and linetype of the layer it is placed on.
- Go to Draw ▸ Block ▸ Make…, or type
BLOCKorB. - In Block Definition, type a Name, such as
WINDOW-1200-SILL. The box also lists the blocks the drawing has. - Under Objects, choose what happens to the objects you select (see the table below).
- Click OK.
Specify insertion base point:Click the point the block will be placed by. For a door, that is usually a jamb on the wall face.Select objects:Select the objects and press Enter. If you selected them before step 2, Naksha uses them and doesn't ask.
| Objects | What happens |
|---|---|
| Retain | The objects stay as they were, and the block is saved for later |
| Convert to block | The objects are replaced by one copy of the block, in the same place. This is the default. |
| Delete | The objects are removed. The block is saved for later. |
Naksha says how many objects went into the block.
A block name can't start with * or use any of < > / \ " : ; ? * | , = or the backquote.
Changing a block¶
Naksha has no block editor yet (BEDIT says so). To change a block:
- Insert a copy, and explode it (Modify ▸ Explode,
X). - Change the objects.
- Make a block again with the same name. Naksha asks whether to redefine it. Click Redefine.
Every copy of the block in the drawing then shows the new version.
A block can't contain a copy of itself.
Attributes¶
An attribute is a labelled blank in a block, filled in each time the block is placed: a door's mark (D1, D2), a room's name, a drawing number in a title block.
Defining an attribute¶
- Go to Draw ▸ Block ▸ Define Attributes…, or type
ATTDEForATT. -
Fill in Attribute Definition:
Field What it is Invisible The value is kept in the block but not shown or printed Tag The attribute's name, such as DOOR_NO. No spaces. Naksha writes it in capitals.Prompt The question asked when the block is placed, such as Door numberDefault The value offered, such as D1Text height The height of the value, in drawing units: 250 prints 2.5 mm high at 1:100 Rotation The angle of the value -
Click OK, and at
Specify start point:click where the value goes. - Make the block (see above), selecting the attribute definitions along with the drawing.
Before the block is made, the attribute shows its tag. Double-click it to change its tag, prompt or default.
Filling in attributes¶
When you insert a block with attributes, Naksha asks for each value at the command line, with its prompt and default, such as Door number <D1>:. Type the value and press Enter, or press Enter to keep the default.
Editing attribute values¶
Double-click the block. Or go to Modify ▸ Object ▸ Attribute ▸ Single…, or type EATTEDIT, ATTEDIT or ATE, and at Select a block reference: click it.
The Enhanced Attribute Editor shows the block's name and a box for each value. Point at a tag to see its prompt. Change the values and click OK.
The Attributes section of the Properties tab shows the same values, and you can change them there too.
Inserting a block¶
- Go to Insert ▸ Block…, or type
INSERTorI. - In the Insert dialog, pick the block in Name. A preview shows it.
- Set the Scale and Rotation (see the table below).
- Click OK.
Specify insertion point or [Scale/Rotate]:Click where the block's base point goes.
| Field | What it does |
|---|---|
| X, Y | The scale across and up. 1 is full size. A negative scale mirrors the block. |
| Uniform scale | Keeps Y the same as X |
| Rotation | The angle, in degrees, counter-clockwise |
| Explode | Places the block's objects separately instead of as one block |
At the insertion point prompt, type S for Specify scale factor for XYZ axes <1>: or R for Specify rotation angle <0>:, then click the point.
The dialog remembers the last block, scale and rotation you used.
Using another drawing as a block¶
In the Insert dialog, click Browse… and choose a DXF file. Naksha makes a block from its objects, named after the file, and picks it in Name. If a block of that name is already there, Naksha asks before replacing it.
This copies the file's objects into your drawing. To keep the other drawing as a separate file that updates, attach it as a reference instead (see DXF references).
Paste as Block¶
Edit ▸ Paste as Block (Ctrl+Shift+V) pastes what you copied as one new block, named A$C1, A$C2 and so on. See The command line and selecting.
Exploding a block¶
Modify ▸ Explode (X) breaks a block into its objects. See Modifying.
To remove blocks nothing uses, use File ▸ Drawing Utilities ▸ Purge. See Files and saving.
The blocks library¶
Naksha's library has doors, windows, fittings, furniture and symbols drawn to standard Indian sizes in millimetres. Doors and windows are drawn for a 230 mm (9 inch) brick wall.
Go to Tools ▸ Tool Palettes (Blocks), or type TOOLPALETTES or TP, or press Ctrl+3. The Blocks tab opens on the right.

- Choose a category at the top.
- Click a block's picture.
- At the insertion point prompt, click in the drawing. Type
Rfirst to turn it, orSto scale it.
Each block goes on its category's layer, which Naksha makes the first time (see Layers Naksha makes). The block is named KZ- and its name, such as KZ-DOOR-900.
What the library has¶
| Category | Blocks | Layer |
|---|---|---|
| Doors | Door 750 (toilet), Door 900 (bedroom), Door 1000 (main), Door 1050 (main), Double door 1200, Double door 1500 | KZ-DOOR |
| Windows | Window 600, Window 900, Window 1200, Window 1500, Window 1800, Ventilator 600 | KZ-WINDOW |
| Toilet and bath | WC, European (EWC); WC, Indian (Orissa pan); Wash basin; Shower 900 × 900 | KZ-SANITARY |
| Kitchen | Kitchen sink with drainboard; Hob, 2 burners; Refrigerator | KZ-KITCHEN |
| Furniture | Bed, king 1830 × 1980; Bed, queen 1520 × 1980; Bed, single 900 × 1980; Sofa, 3 seats; Dining table, 4 chairs; Wardrobe 1200 × 600; Study table and chair | KZ-FURNITURE |
| Staircases | Straight stair 1000 wide (250 mm treads); Dog-legged stair (two flights of 1000 with a landing) | KZ-STAIR |
| Columns and footings | Column 230 × 300, Column 230 × 450, Column 300 × 300; Footing 1200 × 1200, column 230 × 450 | KZ-STRUCTURE |
| Electrical | Light point, Ceiling fan, Tube light, Switch board, Socket 5 A, Power socket 15 A, Distribution board | KZ-ELECTRICAL |
| Trees and vehicles | Tree, Car 1800 × 4500 | KZ-LANDSCAPE |
| Annotation | North arrow | KZ-ANNOTATION |
Where each block's base point is¶
| Blocks | Base point |
|---|---|
| Doors and windows | The opening's left jamb, on the wall's face. The opening goes into the wall below that face. |
| WC, wash basin | The middle of the wall they stand against |
| Beds | The left corner at the foot of the bed |
| Columns, footings, electrical symbols, tree, north arrow | The centre |
Doors and windows in walls¶
A door or window from the library cuts the wall: it hides the wall's hatch and faces across the opening. The 3D view cuts its opening in the wall, and the bill of quantities counts it and takes its opening out of the brickwork, plaster and paint.
To place a 900 door in a bedroom wall:
- Press Ctrl+3, choose Doors, and click Door 900 (bedroom).
- Snap to the wall's corner with the endpoint snap, or type a point.
- Click. The opening runs to the right of the point and down into the wall, and the leaf opens upwards, away from the wall. So pick the jamb on the face of the room the door opens into.
To place it in a vertical wall, type R and 90 before clicking. To make the door swing the other way, mirror it afterwards with Modify ▸ Mirror.
The north arrow is sized for the drawing's scale, from the dimension style's Overall scale. Everything else is full size.
DXF references¶
A reference shows another DXF drawing inside yours, without copying it. When the other drawing changes, reload it and yours shows the change. Use it for a site plan under a building plan, or a structural grid shared by several floors.
Attaching a DXF¶
- Go to Insert ▸ DXF Reference…, or type
XATTACHorXA. - Choose the DXF file.
- In Attach External Reference, check the Name (Naksha suggests the file's name) and choose the Reference Type:
- Attachment: if your drawing is itself attached somewhere, this reference comes along.
- Overlay: this reference shows only in your drawing.
- Set Scale and Rotation, and click OK.
- At
Specify insertion point or [Scale/Rotate]:, click where the other drawing's origin goes. Type0,0to line the two drawings up.
The reference's layers show in your Layers tab as name|layer, such as SITE|BOUNDARY. You can turn them off and change their colours in your drawing.
If the attached drawing has references of its own, they aren't loaded. Naksha says which, so you can attach them yourself.
Pictures and scanned plans¶
Use a picture to trace an old plan, or to put a site photo or a key plan on a sheet. Naksha attaches PNG and JPEG pictures.
- Go to Insert ▸ Raster Image Reference…, or type
IMAGEATTACHorIAT. - Choose the picture.
- In Attach Image, check the Name and click OK.
Specify insertion point <0,0>:Click where the picture's lower-left corner goes. Naksha shows the picture's base size.Specify scale factor <1>:Drag to size the picture and click, or type a scale.
To trace a scanned plan to size, attach it, then use Modify ▸ Scale with its Reference option on a dimension you know, such as a 3000 mm room.
Select a picture to see its Name, File, Pixels and size in Properties, where you can change its position, Width and Height.
Clipping a picture¶
Type IMAGECLIP or ICL to show only part of a picture.
Select image to clip:Click the picture (or select it first).Enter image clipping option [ON/OFF/Delete/New boundary] <New>:Press Enter for a new boundary.Enter clipping type [Polygonal/Rectangular] <Rectangular>:Press Enter, then click two corners. Or typePand click the corners of a shape, pressing Enter to close it.
OFF shows the whole picture again and ON puts the clip back. Delete removes the clip.
PDF underlays¶
A PDF underlay shows a page of a PDF in the drawing, to trace over. Use it for an architect's plan you received as a PDF, or a sanctioned layout from the corporation.
- Go to Insert ▸ PDF Underlay…, or type
PDFATTACH. - Choose the PDF.
- In Attach PDF Underlay, check the Name. For a PDF of several pages, type the Page.
- Set Scale and Rotation, and click OK.
- At
Specify insertion point or [Scale/Rotate]:, click where the page's lower-left corner goes.
At scale 1, the page comes in at its paper size in millimetres. A plan printed at 1:100 needs scale 100 to come in at full size.
An underlay is shown faded, so your own lines stand out. Change the fade in External References (below).
PDF Import¶
PDF Import turns a PDF page into Naksha objects: lines, arcs and polylines with their colours and lineweights, filled areas as hatches, text as text, and pictures as images. Each kind goes on its own layer: PDF_Geometry, PDF_Solid Fills, PDF_Text and PDF_Images.
- Go to Insert ▸ PDF Import…, or type
PDFIMPORT. Select PDF underlay or [File] <File>:- Click a PDF underlay to turn it into objects. The underlay is removed.
- Or press Enter (or type
F) to choose a PDF file. For a PDF of several pages, type the page number. Then, atSpecify insertion point or [Scale/Rotate]:, click where the page's lower-left corner goes.
As with an underlay, a page printed at 1:100 comes in at 1/100 of full size. Use Modify ▸ Scale with a factor of 100 to bring it to full size.
Note
A scanned PDF is one picture, with no lines to import. Naksha says so. Attach it with Raster Image Reference… instead, or as a PDF underlay, and trace over it.
External References¶
The External References window lists every reference in the drawing: DXF drawings, pictures and PDF underlays. Go to Insert ▸ External References…, or type XREF or XR.
The table shows each reference's Reference Name, Status (Loaded, Unloaded or Not Found), Type (Attach, Overlay, Underlay or Image) and File. Click a row to pick it.
The buttons along the top attach a new reference: Attach DXF…, Attach Image… and Attach PDF….
| Button | What it does |
|---|---|
| Reload | Reads the file again, to show changes made to it |
| Browse… | Picks a different file for the reference, such as one that has moved |
| Unload | Hides a DXF reference or underlay but keeps it listed. Reload brings it back. |
| Detach | Removes the reference and every copy of it from the drawing. Naksha asks first. |
| Bind… | Makes a loaded DXF reference part of this drawing (see below) |
The slider at the bottom fades references:
- With a PDF underlay picked, Underlay fade sets that underlay's fade, from 0 to 80%. New underlays start at 25%.
- Otherwise, Fade (all drawings) fades every DXF reference, from 0 to 90%.
Binding a reference¶
Bind turns a DXF reference into an ordinary block of this drawing, so the drawing no longer needs the other file. Pick the reference, click Bind…, and choose:
| Choice | Its layers |
|---|---|
| Bind | Kept apart, renamed name$0$layer |
| Insert | Merged with this drawing's layers of the same name |
A PDF underlay can't be bound. Use PDF Import to turn it into objects.
When a reference isn't found¶
Naksha keeps a copy of each reference's file in the browser. When you open a drawing again, its references load from there. If a file can't be found, the command line says so, and the reference shows Not Found. Pick it in External References and click Browse… to find the file.
When you save, the DXF keeps each reference's file name, not its objects. Send the reference files along with the drawing. See Files and saving.
Note
A reference or underlay can't be exploded. Bind a DXF reference first, or use PDF Import for a PDF.