Working with Files
Part files
Parts are saved as .rcad files, assemblies as .rasm, drawings as .rdrw and drawing templates as .rdrt files (see the Assemblies and Drawings chapters).
| Command | Shortcut | Notes |
|---|---|---|
| File ▸ New Part | Ctrl+N | Opens in a new tab |
| File ▸ New Assembly | Opens in a new tab | |
| File ▸ Open… | Ctrl+O | Opens parts, assemblies, drawings, templates, and STEP, IGES, STL, OBJ and 3MF files |
| File ▸ Open Sample Part | The built-in sample, in a new tab | |
| File ▸ Save | Ctrl+S | Uses the normal Windows save dialog the first time |
| File ▸ Save As… | Ctrl+Shift+S | Saves a copy under a new name |
| File ▸ Where Used… | The assemblies and drawings that use this part or assembly: those open now, and (once it is saved) those in its folder and the folders under it. Open opens one | |
| File ▸ Revisions… | The revision history of the part or assembly: New Revision records the next revision (A, B … Z, AA; or the next number) with its date, description and who made it, sets the Revision property, and keeps a copy of the document as it is; Open opens that copy again as a new document | |
| File ▸ Properties… | The part's or assembly's custom properties (see below) | |
| File ▸ Compare With… | Compares the part with another version of it (see below) |
Properties
File ▸ Properties… in a part or assembly holds custom properties such as Part Number, Description, Vendor, Finish or Cost. Common names are suggested; any name works. Undo takes a change back. A drawing of the part takes its drawing number from the Part Number, bills of materials can show any property as a column, and the Cost property gives the cost columns (see Bill of Materials).
Compare With
File ▸ Compare With… compares the part in front with its last saved version, another part file, or another open part.
- Features and settings: features added or removed, features changed (with which settings: a depth, sketch points, an end condition, a new name), features moved in the tree, and the part's own settings (material, equations, units, configurations, properties).
- Shapes: both versions' volumes, and the material this version adds (shown yellow on the model) and removes (red), with their volumes.
Tabs and closing
Several parts and drawings can be open at once, each in its own tab. New, Open and Sample all open a new tab. Closing a tab with unsaved changes asks whether to save it, and closing RazorCAD asks to save every unsaved part.
Auto-save and recovery
Auto-save starts once a part has been saved for the first time. While the part has unsaved changes it is written next to the part file, at most every 20 seconds (Settings ▸ General ▸ Auto-save sets how often, or turns it off), as Name.autosave.rcad. The title bar shows the time of the last auto-save. Saving the part removes the auto-save file.
If RazorCAD closes with unsaved changes, opening the part again offers to recover the auto-saved version. It is also marked in the recent list.
The recent-files list is kept in %APPDATA%\RazorCAD\recent.json.
Opening from Windows and file previews
Double-clicking a .rcad, .rasm or .rdrw file opens it in RazorCAD; if RazorCAD is already running, the file opens in a new tab there. RazorCAD sets the file types up itself when it starts. Help ▸ Open Files With RazorCAD… shows whether they are registered and can register them again.
Saving keeps a small picture of the view in the file. Windows Explorer, the Open and Save dialogs and the start window show it as the file's thumbnail.
A part that takes a while to build is stored, once built, in %LOCALAPPDATA%\RazorCAD\modelcache (kept under 1 GB). With it the kernel keeps the geometry after each feature. Opening the unchanged file again shows the model at once, ready to edit: the first change after opening rebuilds only from the changed feature on, as any later change does. The store is kept for each version of the geometry kernel, so it survives RazorCAD updates that leave the kernel alone.
Each open part keeps a geometry kernel of its own, as many as the PC's processor threads and free memory allow (see Speed on your PC in the Troubleshooting chapter). Switching back to a part is then immediate, and a part still building goes on while you work in another tab.
Point clouds
File ▸ Import Point Cloud (PLY, XYZ)… brings a scan into the part as a Point Cloud feature, shown as dots: a PLY file (ASCII or binary; its faces are not read) or a text file of x y z lines (XYZ, TXT, CSV, PTS). Up to 200 000 points are kept (every so many of a bigger scan). Surfaces ▸ Fit Surface to Points makes a surface body fitted to it by least squares: a Plane, a Cylinder, a Sphere, or a Freeform surface through a grid of heights over the cloud's best plane (more grid points follow it more closely). The message gives how far the points are from the surface (RMS and the largest). Build the part on the fitted surfaces with the usual tools (Thicken, Knit, Replace Face…).
Importing STEP, IGES, STL, OBJ and 3MF
There are two ways to bring in a STEP, IGES, STL, OBJ or 3MF file:
- File ▸ Open… opens it as a part of its own in a new tab, named after the file, without asking. A STEP file that holds an assembly asks first:
- Open as an Assembly makes a new assembly with the file's structure: a sub-assembly for each of its sub-assemblies, a part for each part, and a component, fixed, where the file places each one. Each part keeps its own piece of the STEP file and is built on its own, and a part used several times is built once.
- The first build of each part is kept on disk (in
%LOCALAPPDATA%\RazorCAD\modelcache, up to 1 GB, shared with parts). The next time the assembly opens, unchanged parts are shown straight from there instead of being rebuilt, so a big assembly reopens in seconds. - Open as One Part brings every solid into one part, as before.
- File ▸ Import STEP / STL… (Ctrl+I, also on the Features tab, and Import STEP / STL / OBJ / 3MF on the Evaluate tab) offers three choices: a new part, insert in place into the current part, or insert and locate with mates. Locating with mates adds a separate "Locate …" Move Body feature under the import.
How imports behave:
- The file's contents are stored inside the part file, so the part does not depend on the original file.
- A STEP file's appearances come with it: the colour of each solid and of single faces, and transparency. Your own Appearance and Make Transparent / Make Opaque settings on a body win over them.
- STEP imports as an exact solid. Every solid becomes its own body; a solid made of several separate shells is split into one body per shell; loose surfaces become surface bodies.
- The bodies of a multi-body STEP file are grouped in their own folder under Solid Bodies.
- Tick Merge touching bodies into one body in the import feature to fuse them instead.
- STL, OBJ and 3MF meshes are converted to a solid made of their triangles, with coplanar triangles merged. A 3MF file's units and build placement are read. A mesh that is not closed comes in as a surface body, with a note saying how many open edges it has; Repair Mesh or Convert to Solid (Surfaces chapter) can close it.
- Big meshes are simplified on import, by default to 80,000 triangles, keeping their edges and outlines. Set the limit in the import's properties (Simplify meshes above … triangles; 0 never simplifies). The import's note says how far a mesh was simplified.
- Imported bodies can be cut, extended, patterned and (for STEP) filleted like any other body. A cut or fillet on a body of more than 20,000 mesh faces warns that it can take several minutes.
IGES files (.igs, .iges) open and import like STEP files. Trimmed and bounded surfaces, B-rep solids, B-spline, plane, revolved, extruded, cylinder, cone, sphere and torus surfaces, lines, arcs, B-spline and composite curves and polylines are read, with the file's units and transformations. Faces that close up are sewn into a solid; the rest come in as surface bodies. RazorCAD translates IGES into STEP for the geometry kernel, which has no IGES reader of its own.
Volumes of bodies with B-spline faces (imported NURBS, IGES) are measured exactly.
Exporting
| Command | Result |
|---|---|
| File ▸ Export ▸ STEP… | An exact B-rep. Each body is written as its own named, coloured solid (in its own colour, else its material's). AP242 unless Settings ▸ Export says otherwise (AP214, AP203, the file's units, colours, author) |
| File ▸ Export ▸ STL… | A mesh: binary, or ASCII, and as fine as Settings ▸ Export ▸ STL sets |
| File ▸ Export ▸ glTF (.glb)… | The bodies as the view shows them, for web viewers and AR : each a mesh with its colour and its render look's metalness and roughness, in metres, Y up |
| Evaluate ▸ Export OBJ / Export 3MF | A mesh; 3MF is written in millimetres |
| Right-click a body ▸ Export Body as STEP… | One body only |
| File ▸ Export ▸ Face as DXF… | The outline of a flat face (see below) |
| File ▸ Export ▸ Flat Pattern as DXF…, Sheet Metal ▸ Export DXF | Flat patterns (see the Sheet Metal chapter) |
| Drawing ▸ Export PDF / Export DXF | Drawing sheets (see the Drawings chapter) |
Export Face as DXF
Click a flat face, then right-click ▸ Export Face as DXF… (or File ▸ Export ▸ Face as DXF…). The face's outline (layer OUTLINE) and holes (layer HOLES) are written as a 2D drawing in millimetres, seen from outside the part. Use it for laser or waterjet cutting, or to take a profile into a 2D CAD program.
Lines, arcs and circles are exact; other curves become fine polylines. The file is DXF R12, which practically every program can read.