Files and saving¶
Naksha opens and saves drawings as DXF files, the drawing format other CAD programs read and write. The commands are in the File menu. This chapter also covers how Marathi and Hindi text goes into a DXF, and how to remove unused blocks and layers.
Opening a drawing¶
- Go to File ▸ Open…, press Ctrl+O, or type
OPEN. - If the drawing on screen has changes that aren't saved, Naksha asks whether to discard them.
- Choose a .dxf file.
Naksha opens ASCII DXF files, from R12 up to current versions. After opening, the command line says what it read:
- how many objects and layers, and the file's units
- the names of its layouts
- how many block definitions and block references
- text in the older Hindi and Marathi fonts (Kruti Dev, Chanakya, Akruti) that was converted to Unicode
- dynamic blocks or unusual dimensions that were broken into plain objects
- objects it doesn't read yet, under
Not read yet:, with how many of each
What Naksha opens¶
| File | Opens? |
|---|---|
| ASCII DXF, R12 to current versions | Yes |
| Binary DXF | No. Save it again from the other program as ASCII DXF. |
| .dwg drawings | No. Save them as DXF in the program that made them, then open the DXF. |
| PDF pages, PNG and JPEG pictures | Not with Open. Attach them to a drawing with Insert ▸ PDF Underlay…, PDF Import… or Raster Image Reference… (see Blocks, libraries and references). |
Naksha doesn't read these objects yet: wipeouts, multileaders, tolerances, OLE objects, regions and 3D solids made in other programs. They are listed under Not read yet: and left out.
Units of an opened drawing¶
Naksha works in millimetres inside. It reads the file's insertion units and scales the drawing to millimetres:
| File's units | Read as |
|---|---|
| Millimetres | Millimetres |
| Centimetres, decimetres, metres | Scaled to millimetres |
| Inches, feet | Scaled to millimetres |
| None set, in an imperial drawing | Inches |
| None set otherwise | Millimetres |
If the file's length units are architectural or engineering, the drawing opens in feet and inches. You can change how lengths are shown with Format ▸ Units… (see Getting started).
References and pictures¶
A drawing that uses other DXF files as references, or pictures and PDF pages, keeps their file names. When you open it, Naksha loads the references it can find and lists any it can't, for example Reference "SITE" not found: site.dxf. Open External References (XREF) to find it. See Blocks, libraries and references.
Recent drawings¶
File ▸ Recent Drawings… lists the drawings you opened or saved in this browser, newest first, with a small picture, the date and the size. It keeps the last twelve.
- Click Open to open one.
- Click × to remove a drawing from the list. The file itself isn't touched.
Naksha keeps a copy of each listed drawing in the browser. In Chrome and Edge it opens the file as it is on disk now, if the browser still allows it; otherwise it opens the copy from when you last opened or saved it.
Saving¶
Go to File ▸ Save, press Ctrl+S, or type SAVE.
Naksha saves DXF in the 2000 format, which other CAD programs open in full. The command line says Saved <name> (DXF, 2000 format).
Where the file goes depends on the browser:
| Browser | Save | Save As… |
|---|---|---|
| Chrome, Edge | Writes back to the file you opened. A new drawing asks where to save it the first time. | Asks for a name and folder |
| Other browsers | Downloads the file to your downloads folder | Downloads the file |
The drawing's file name shows at the right of the menu bar.
Note
Typing SAVEAS (or QSAVE, or DXFOUT) at the command line does the same as Save. To save under a new name, use File ▸ Save As… or Ctrl+Shift+S.
Save As¶
Go to File ▸ Save As…, or press Ctrl+Shift+S. Choose a name and folder. From then on, Save writes to the new file.
Save as DXF R12¶
File ▸ Save as DXF R12 saves an older kind of DXF, for older programs and for cutting and plotting machines that need it. It always downloads the file, and it doesn't change which file Save writes to.
An R12 file has less in it. Other programs see:
- only the first layout
- hatches as lines
- no lineweights
The command line says this after the save. Naksha keeps all the layouts in the file in a form it reads back itself.
Marathi and Hindi text¶
If the drawing has Marathi or Hindi text, Naksha asks how it should go into the DXF file the first time you save in a session:
| Choice | What you get |
|---|---|
| As text | The text stays editable in other CAD programs, in the Nirmala UI font. Some programs may not join conjuncts and vowel signs correctly. |
| As outlines | The text looks exactly as it does in Naksha, in any program, but it can't be edited as text there. Your drawing in Naksha keeps the text. |
Click Cancel to stop the save. Naksha remembers your choice until you close or reload the page.
Use As outlines for drawings you send to someone who only prints them, such as a sanction set. Use As text when someone will edit the notes in another program.
What a saved DXF keeps¶
A DXF saved by Naksha (the 2000 format) keeps:
- layers with their colours, linetypes, lineweights and on, frozen and locked settings
- each object's colour, linetype and lineweight
- lines, arcs, circles, polylines with their arcs and width, ellipses, splines, points, rays and construction lines
- text, multiline text, text styles and leaders
- dimensions with their dimension style
- hatches, with their patterns
- blocks with their attributes, and groups
- layouts with their viewports
- references, pictures and PDF underlays, by file name
- the layer states you saved, in a form Naksha reads back
Some objects are saved in a simpler form:
- A wipeout is saved as a white solid fill (colour 255), which hides what is under it when plotted.
- A 3D solid is saved as a polyface mesh.
A drawing in feet and inches is saved in inches, with architectural units, so other programs show the same sizes.
Purging unused blocks and layers¶
Drawing Utilities ▸ Purge removes block definitions and layers that nothing in the drawing uses. It makes the file smaller and the block and layer lists shorter.
- Go to File ▸ Drawing Utilities ▸ Purge, or type
PURGE(orPU). - At
Enter type of unused objects to purge [Blocks/LAyers/All]:, type:Bfor blocksLAfor layersAfor both
- The command line lists each block and layer it deletes, then how many items were purged.
Purge never removes layer 0, the current layer, layers that blocks use, or the layers and blocks of attached references. Undo (Ctrl+Z) puts purged items back.
Autosave and recovery¶
Naksha keeps a copy of the drawing in the browser every 10 seconds while it has changes, and offers it back if the page closes before you save. See Autosave and drawing recovery.
The copy is not a file on your computer. Save your work with Ctrl+S.