Skip to content

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

  1. 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.
  2. Go to Draw ▸ Block ▸ Make…, or type BLOCK or B.
  3. In Block Definition, type a Name, such as WINDOW-1200-SILL. The box also lists the blocks the drawing has.
  4. Under Objects, choose what happens to the objects you select (see the table below).
  5. Click OK.
  6. 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.
  7. 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:

  1. Insert a copy, and explode it (Modify ▸ Explode, X).
  2. Change the objects.
  3. 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

  1. Go to Draw ▸ Block ▸ Define Attributes…, or type ATTDEF or ATT.
  2. 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 number
    Default The value offered, such as D1
    Text height The height of the value, in drawing units: 250 prints 2.5 mm high at 1:100
    Rotation The angle of the value
  3. Click OK, and at Specify start point: click where the value goes.

  4. 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

  1. Go to Insert ▸ Block…, or type INSERT or I.
  2. In the Insert dialog, pick the block in Name. A preview shows it.
  3. Set the Scale and Rotation (see the table below).
  4. Click OK.
  5. 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.

The Blocks tab beside the sample 2 BHK plan, showing the Doors category: Door 750 (toilet), Door 900 (bedroom), Door 1000 (main), Door 1050 (main), Double door 1200 and Double door 1500, each as a picture. The note below says the sizes are standard Indian sizes in millimetres for a 230 mm wall, the base point is the opening's left jamb on the wall face, doors go on the KZ-DOOR layer, and R at the insertion point rotates.

  1. Choose a category at the top.
  2. Click a block's picture.
  3. At the insertion point prompt, click in the drawing. Type R first to turn it, or S to 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:

  1. Press Ctrl+3, choose Doors, and click Door 900 (bedroom).
  2. Snap to the wall's corner with the endpoint snap, or type a point.
  3. 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

  1. Go to Insert ▸ DXF Reference…, or type XATTACH or XA.
  2. Choose the DXF file.
  3. 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.
  4. Set Scale and Rotation, and click OK.
  5. At Specify insertion point or [Scale/Rotate]:, click where the other drawing's origin goes. Type 0,0 to 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.

  1. Go to Insert ▸ Raster Image Reference…, or type IMAGEATTACH or IAT.
  2. Choose the picture.
  3. In Attach Image, check the Name and click OK.
  4. Specify insertion point <0,0>: Click where the picture's lower-left corner goes. Naksha shows the picture's base size.
  5. 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.

  1. Select image to clip: Click the picture (or select it first).
  2. Enter image clipping option [ON/OFF/Delete/New boundary] <New>: Press Enter for a new boundary.
  3. Enter clipping type [Polygonal/Rectangular] <Rectangular>: Press Enter, then click two corners. Or type P and 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.

  1. Go to Insert ▸ PDF Underlay…, or type PDFATTACH.
  2. Choose the PDF.
  3. In Attach PDF Underlay, check the Name. For a PDF of several pages, type the Page.
  4. Set Scale and Rotation, and click OK.
  5. 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.

  1. Go to Insert ▸ PDF Import…, or type PDFIMPORT.
  2. 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, at Specify 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.