Sizing a drawing with dimensions, variables and locks
How to make a drawing that resizes itself: put a dimension on a shape, tie it to a variable such as the board thickness, and lock the parts that must not move. Applies to GCarve 0.1.34 and later (desktop and online); 0.1.33 has all of it except the red banner, box-selecting nodes and the lock on the Properties panel.
The idea in one minute
- A dimension measures between two corners or two sides of your shapes.
- Give the dimension a length and it stops measuring and starts setting the size: the shape changes to match.
- Make that length a variable (for example
thickness) and every dimension that uses it changes together when you change the variable once. - Lock a corner or a side and it stays put: everything else moves around it.
1. Put a dimension on a shape
- Pick the Dimension tool in the tool list on the left (key D).
- Move over your shape. A corner shows a blue dot and a straight side turns blue when a click will take it.
- Click the first corner or side, then the second.
- Move the pointer to where the dimension line should sit and click a third time.
- The length box opens. Type a length to set the size, or press Esc to keep the dimension as a measurement only.
| You click | You get |
|---|---|
| Two sides | The distance straight across (square to the first side). Setting it moves the whole second side, so a rectangle stays a rectangle. |
| Two corners | The straight distance between them. Setting it moves the second corner only. |
| A corner and a side | The distance from the corner square across to the side. |
| The same side twice | That side's own length, corner to corner. |
| Corners or sides of two different shapes | The gap between the shapes. Setting it moves the second shape as a whole. |
Curved segments can't take a side dimension; click their end corners instead. Right-click a corner-to-corner dimension for Make Horizontal or Make Vertical to measure along one axis only.
2. Give it a length, or tie it to a variable
Double-click a dimension's number at any time to open its box again. The Length field accepts:
| You type | What happens |
|---|---|
4in, 120mm, 4 | The size is set to that. A bare number is in the project's unit. |
thickness | The size follows the variable thickness. Without a variable of your own by that name, thickness is the board's thickness from Job Setup. |
width = 12 | Makes the variable width with the value 12 (or updates it) and ties this dimension to it. |
2 * thickness + 1/8in | Any sum of sizes and variables works. |
| (empty) | The dimension only measures again. |
The Variable list beside the field shows the variables the drawing already has; pick one to tie the dimension to it.
A dimension that sets a size is drawn in blue with a solid dot on the end that stays and a ring on the end that moves.
Change the variable, change the drawing
- Open Variables › Variables & Constraints…
- Change the value of the variable.
- Every dimension tied to it resizes its shape at once. Toolpaths on those shapes are worked out again.
Variable names start with a letter and may contain letters, digits, _ and -. Built in: thickness (also z and board-t), board-w, board-h.
3. Choose what stays still
For one dimension
In the dimension's box, Stays still offers First end (the one you clicked first) or Second end. The other end moves when the length changes.
Lock a corner or a side for good
- Right-click the corner or the straight side.
- Choose Lock This Corner in Place or Lock This Side in Place.
A small padlock appears on it (a locked side is also drawn thicker). From then on:
- It can't be dragged with the Nodes tool.
- The shape it belongs to can't be moved, turned, flipped, aligned or resized as a whole, from the drawing or from the Properties panel.
- Any dimension that touches it moves its other end, whichever end you clicked first.
To free it, right-click the padlock and choose Unlock.
- "Locked in place: this point can't be dragged…" You tried to drag a locked corner.
- "Locked in place: this shape has a locked corner or side, so it can't be moved or resized…" You tried to move, turn, align or resize the whole shape.
- "Both ends of this dimension are locked in place, so it can't set a size…" A dimension has nothing it is allowed to move. Unlock one end, or leave its length empty so it only measures.
A worked example: a slot that fits your board
You want a slot exactly as wide as the board is thick, and it should update if you switch from 3/4 in to 18 mm plywood.
- Draw a rectangle for the slot (R), any size.
- Right-click its left side › Lock This Side in Place, so the slot keeps its position.
- Dimension tool (D): click the left side, click the right side, click above the slot.
- In the length box type
thicknessand press Enter. The slot is now as wide as the board is thick. - Change the board thickness in Job Setup: the slot follows. For a looser fit use
thickness + 0.01in.
Editing corners: picking several at once
With the Nodes tool (N):
- Shift, Ctrl or Cmd-click adds a node to what is picked. Click it again with the key held to take it out.
- Drag a box starting on empty space to pick every node inside it. Hold the key while you start the drag to add to what is already picked.
- Drag any picked node and they all move together.
- Delete removes all of them in one undo step.
Good to know
- Undo (Ctrl/Cmd+Z) takes back a length, a new variable or a lock like any other edit.
- Dimensions, variables and locks are saved in the project file.
- If you delete a shape or a corner that a dimension sits on, the dimension stays as a loose measurement. Select it and press Delete to remove it.
- Dragging a shape by hand that a dimension is holding in place releases that dimension's length (it measures again), unless the shape is locked.
- Dimensions are never cut. They are drawing aids only.
Not supported yet
- Angles can be measured (Angle tool) but can't set an angle.
- Curved sides can't be dimensioned as sides or locked as sides; use their end corners.
- A locked shape whose position or size is tied to a variable (in Variables & Constraints) still follows that variable.
- There is no "equal", "parallel" or "tangent" relation; sizes and positions only.
GCarve · gcarve.app · guide written 2026-11-12
Try it on your own job: GCarve is free, runs in your browser with a free account, and has free desktop apps.
Open GCarve free