Evaluate and Tools
Measure
Evaluate ▸ Measure, Tools ▸ Measure… or the view's right-click menu. Click vertices, edges, faces, planes or sketch lines; with two items picked it shows the distance between them plus dX, dY and dZ. Use the body filter (B) to pick whole bodies. Sizes are in the document's units. Assemblies have their own: see Measure in an assembly in the Assemblies chapter.
- Snap To: besides vertices, a click picks sketch points, the midpoints of edges and the centres of circles and arcs (a hole's centre too); each can be turned off. As you move, the point a click would pick is marked on the model with its name.
- The items picked are numbered 1 and 2 on the model.
- Keep the first item measures from the first item to each next click (a third click replaces the second, not the first).
- Measured lists the distances measured so far, most recent first.
DFM Check
Evaluate ▸ DFM Check checks the solids for machining : sharp inside corners (a concave straight edge between flat faces: a cutter leaves its radius there), inside rounds smaller than the smallest cutter radius, holes smaller than the smallest hole or deeper than a number of times their diameter, hole sizes that are not standard drills (whole or half millimetres up to 20, whole millimetres above: reamed, bored or clearance holes are reported as notes), and very small faces (often import slivers). Each finding is listed and numbered on the model; Clear the marks removes them. For thin walls use Thickness Analysis, for moulded parts Draft Analysis and Undercut Check, for sheet metal Sheet Metal Check.
3D Annotations
Evaluate ▸ 3D Annotation puts product and manufacturing information on the model itself (model based definition) : a Note, a Dimension between two points (its value measured, or given) with its tolerances, a Geometric tolerance (a feature control frame: the characteristic, a Ø zone if ticked, the tolerance and the datums), a Datum letter or a Surface finish (Ra). Fill in the dialog, then click the point on the model it is about (two points for a dimension). Each shows as a label with a leader to its point and follows the view. Tools ▸ 3D Annotations… lists them, to delete them or hide them all. Exported to STEP (whole part, as AP242 in millimetres: the default of Settings ▸ Export), datums, geometric tolerances and dimensions go into the file as semantic PMI (AP242), each on the face it points at, for programs that read AP242 PMI; notes and surface finishes go in as properties of the part. A STEP file with PMI opened in RazorCAD shows its datums, tolerances and dimensions as 3D annotations.
They are saved with the part, and a STEP export of the part carries them: each annotation is written as a property of the part with its kind, its text and the points it refers to (in AP242, AP214 and AP203 files alike). Programs that read STEP properties show them; they are not semantic GD&T that a measuring machine program can use directly.
Tolerance Stack-Up
Evaluate ▸ Tolerance Stack-Up (also in an assembly's ribbon, and Tools ▸ Tolerance Stack-Up…) works out a gap from a chain of dimensions in one direction . Each row is a dimension: its nominal size, its upper and lower tolerance (both as positive numbers: 50 +0.1 / −0) and whether it adds to or takes from the gap. The results update as you type: the gap's nominal and mean, its worst case limits (every tolerance at its limit together) and its statistical limits (root sum of squares: what most assemblies see when the parts vary independently), checked against the gap required (at least / at most). The share column shows which tolerances matter most. Stack-ups are kept in the part or assembly; New stack-up adds another.
Mass Properties
Evaluate ▸ Mass Properties shows mass, volume, surface area and centre of mass. It adds up every body with its own density and lists the bodies. A body with no material uses 1.00 g/cm³.
Interference Check
Evaluate ▸ Interference Check finds where the solid bodies of a part overlap. It lists each pair with its overlap volume and shows the overlaps in red. Assemblies have their own (see the Assemblies chapter).
Surface analysis
These displays colour the model to show the quality of its faces. Click the button again to turn its display off.
| Command | Shows |
|---|---|
| Zebra Stripes | Reflected stripes on every body. Across a smooth join the stripes run on without a kink. |
| Curvature | Bodies coloured from blue (flat) through green and yellow to red (tightest). The status bar gives the radius red stands for. |
| Draft Analysis | Choose a pull direction (an axis or a selected face's normal) and the draft needed. Faces turn green with enough draft, yellow where they need more, and red with draft the other way. |
| Thickness Analysis | Give the thinnest and thickest walls allowed. Each point is coloured by the wall thickness measured from it straight in through the material: red thinner than allowed, blue thicker (sinks and voids in a moulding), green to yellow between, grey where no wall was found. The status bar gives the thinnest and thickest walls and the share of the surface outside the limits. |
| Undercut Check | Choose a pull direction. Each point is looked at along it and against it: green can be pulled out along it (one mould half), blue against it (the other), red neither way (an undercut, needing a side action or a change). The status bar gives the share of the surface undercut. |
Configurations
Evaluate ▸ Configurations opens the design table (see the Configurations chapter).
Equations and global variables
Tools ▸ Equations… holds global variables that can be used in any dimension or feature value. Example: width = 120, then set a depth to width/4. Each row shows the value it evaluates to; invalid or duplicate names are flagged.
Dimension IDs
Every dimension has a short ID of its own: each sketch and 3D sketch dimension (reference ones too) and each value of a feature (an extrude's depth, a fillet's radius…). IDs are given when the dimension is made: D1, D2… from a counter that never goes back, so an ID is never given twice in a part. The ID shows as a small tag by the value in a feature's panel, in a 2D sketch dimension's Modify box, and in the tooltip of a dimension in the sketch. Click the tag to rename it (e.g. Width); every value that uses it is changed to the new name.
Use an ID in any value as you would a global variable: set a depth to D3 / 2 or Width / 2 and it follows that dimension. (A reference dimension's ID can't drive others yet: its value is measured, not set.) IDs are also what a design table can list.
Deleting a dimension others use : a warning lists what uses it, with Undo to keep it. Deleted anyway, the values that used it fail: they hold its last value (so nothing moves), they show in red (a sketch dimension, a feature's value), and a feature with such a value shows as failing in the tree. Change them to drop the deleted ID and the failure goes. Hover a failing feature in the tree to see why; several reasons are shown as bullet points.
Every value field accepts:
| Item | Examples |
|---|---|
| Operators | + - * / ^ % and parentheses |
| Variables | Any name from Equations |
| Trigonometry (degrees) | sin cos tan asin acos atan |
| Other functions | sqrt abs min max round floor ceil pow |
| Constants | pi |
| Units of length | 2in, 30 mm, 1.5cm, 2ft, (w/2)*in (see Units) |
A value may start with =. Variable names start with a letter or underscore and can't be a function name.
Macros
Tools ▸ Macros… writes, runs and saves JavaScript macros that drive RazorCAD.
- In parts they can sketch (lines, rectangles, circles, arcs, polygons), extrude, cut, revolve, add any feature, change or delete features, set equations and the material, and rebuild. In assemblies and drawings they can add, change and remove components, mates, views and annotations.
- Anywhere they can run any command by its name in the command search, ask you for a value, and run other macros.
- The API button lists what a macro can use; a sample macro shows the idea.
- A macro's changes are one undo step. Errors show their line, which is selected in the editor. Ctrl+Enter runs; Ctrl+S saves.
Tools ▸ Record Macro records what you do until Stop Recording Macro (or the red "● Recording macro" in the status bar): the features you add, change, delete or reorder, the commands you run, and in assemblies and drawings what you change there (parts inserted, components moved, mates, views, annotations, sheets). The recording opens in the Macros dialog to be saved or edited. Items made during the recording are kept in variables and others are found by name, so a recording plays back into another part, assembly or drawing.
Saved macros are in the Tools menu (Macro: name) and the command search, so they can have keyboard shortcuts. Import… / Export… share them as .js files.
Where they are kept : in the Windows app each macro is a .js file of its own in Documents\RazorCAD\Macros. The Macros window shows the folder: Change Folder… keeps them in another one (a OneDrive or network folder, say, so they are backed up with your documents), Open Folder opens it in Explorer and Default goes back to Documents\RazorCAD\Macros. The macros of the folder before are copied into the new one (when it has none of that name); the files are left where they were. A .js file put into the folder yourself is listed too, by its file name. Macros saved by an earlier version (with the preferences) are moved into the folder the first time RazorCAD starts. In the browser version they stay with its preferences.
Plug-ins
A plug-in adds tools of your own to RazorCAD: a generator that asks for sizes and builds the part, a set of checks, an exporter for your workshop. Each plug-in gets a ribbon tab of its own holding its commands, and they are also in the Tools menu and the command search, so they can have keyboard shortcuts. Plug-ins are written in JavaScript, apart from RazorCAD, and kept on your own PC: a plug-in for your own use, or your company's, is never shared unless you share it.
Tools ▸ Plug-ins… lists the plug-ins found, each with its version, author and state:
- The tick turns a plug-in on or off. A plug-in found for the first time is off until you turn it on (RazorCAD asks first, as a plug-in can do anything RazorCAD can). The ones turned on start each time RazorCAD does.
- New Plug-in… makes a plug-in to start from, with a generator of a plate with holes on its own tab, and opens its folder. Change it and press Reload.
- Install… installs a plug-in someone gave you, as a .zip (in the browser version, its folder).
- Reload loads all the plug-ins again, after you change one.
- Folder opens a plug-in's folder (in the browser version, Remove takes it out).
A plug-in that fails to start shows why in the list; the others carry on. A plug-in's command that goes wrong shows its error, and its changes to a part are one undo step, as a macro's are.
On the desktop, plug-ins are folders in Documents\RazorCAD\Plugins, one each. The browser version keeps the plug-ins installed into it in the browser's own storage. To write one, see Writing a plug-in.
Edit Material
Tools ▸ Edit Material… (or the Material item in the tree) sets the part material. See Appendix B for the list.