FreeCAD US

FreeCAD US · Parametric Workflow Notes

FreeCAD Spreadsheet Parametric Workflow

A step-by-step record of how one spreadsheet cell controls a sketch dimension, how that dimension pads into a solid, and how the finished part exports to STL and STEP without manual re-entry of a single value.

Driver objects
One spreadsheet per document
Binding method
Alias + expression on the property
Rebuild trigger
Ctrl+R or document save

Stage 01

Spreadsheet setup: where the numbers live

A new FreeCAD document opens with a model tree, an empty 3D view and a task panel. The Spreadsheet workbench adds one more object to that tree: a grid of cells that stores numbers, text and formulas. Each cell is addressed by column letter and row number — B4, C12, F7 — and any formula reads another cell by that address. The grid is not a drawing aid; it is the input layer of the whole model.

Setup starts with an inventory of the dimensions that change between product versions. A mounting bracket has at least four drivers: plate thickness, hole diameter, hole spacing and corner radius. Each driver gets its own row, with a plain-text label in the first column and the numeric value in the second. Units are typed together with the value — 6 mm, 0.25 in — and FreeCAD keeps the unit attached, converting on read.

Structure beats formatting. One parameter per row, no merged cells, no decorative colour, and a practical ceiling of about forty rows per sheet. When a model grows past that, it is a signal that the assembly should be split into sub-parts, each with its own sheet and its own alias prefix. The same sequence is walked through in the setup and first sketch guide.

  • Column A: alias name, lowercase, underscores only — plate_thickness.
  • Column B: value with unit attached — 6 mm.
  • Column C: one line describing what the value controls.
  • No merged cells and no blank rows inside the parameter block.
Spreadsheet parameter grid inside the FreeCAD interface
Fig. 1: Parameter rows in the Spreadsheet workbench — one driver per row, label in the first column, value with unit in the second.

Stage 02

Named aliases: the naming layer

An alias is a text name bound to one cell. Once the alias plate_thickness is set on cell B2, every property field in the document can read Spreadsheet.plate_thickness instead of Spreadsheet.B2. Inserting a row no longer breaks the model, because the name follows the cell while the address does not. Aliases are assigned in the cell properties panel, are case-sensitive and cannot contain spaces.

Start here

FreeCAD Beginner Guide

Workbench layout, navigation, units and the document structure that the spreadsheet plugs into.

Read article
Step 03

Setup and First Sketch

Preferences, workbench selection and the first fully constrained rectangle drawn on a base plane.

Read article
Step 04

Sketcher Constraints Tutorial

Coincident, horizontal, vertical, tangent and dimensional constraints, plus the degrees-of-freedom counter.

Read article
Step 05

Part Design Pad and Pocket

Turning a bound sketch into a solid, cutting holes with Pocket, and keeping the feature tree linear.

Read article
Step 06

STL and STEP Export Guide

Mesh tolerance, unit checks and the difference between a printable mesh and a CNC-ready STEP file.

Read article
Reference

Modeling Best Practices

Naming rules, feature order, tolerance strategy and the checks that keep a rebuild under two seconds.

Read article

Stage 03

Expression binding: from cell to sketch

Binding an expression takes four actions. Select the object, open the property editor, click the f(x) icon next to the numeric field, and type the reference — for example Spreadsheet.hole_dia. Press Enter and the field turns light blue, which marks it as computed rather than typed.

Expressions accept arithmetic, not only references. A hole depth can be written as Spreadsheet.plate_thickness + 2 mm, and a bolt circle diameter as Spreadsheet.hole_spacing * 2. FreeCAD evaluates the expression on every recompute, so geometry follows the sheet with no further input. The same mechanism drives sketch constraints, Pad lengths, Pocket depths and fillet radii in the Part Design workflow.

  • Bind dimensions, never geometry type or feature order.
  • Keep one alias per driver; two aliases on one cell cause silent conflicts.
  • Write units explicitly inside expressions to avoid silent scale errors.

Stage 04

Update flow: what happens on recompute

FreeCAD builds a dependency graph each time a document opens or a value changes. The spreadsheet sits at the top of that graph, sketches read from it, and solid features read from the sketches. When a cell value changes, every downstream object is marked as touched and the recompute runs in topological order — parents first, children after.

The recompute is triggered with Ctrl+R, with the refresh button in the toolbar, or automatically on save when that preference is enabled. A failed recompute leaves the feature marked in red in the tree and the model in its last valid state. The report view prints the exact expression that failed, which is usually a renamed alias or a deleted cell.

Long dependency chains recompute slowly. A model with two hundred features and thirty bound properties can take several seconds per update on a laptop. Splitting the spreadsheet into a driver sheet and read-only reference sheets keeps the graph shallow and the rebuild time predictable.

  1. 1. Change one cell value in the driver sheet.
  2. 2. Downstream objects are marked as touched.
  3. 3. Recompute runs in topological order.
  4. 4. Report view is checked for failed expressions.
  5. 5. Document is saved and the parameter block is exported.
Model tree showing spreadsheet, sketches and Part Design features in dependency order
Fig. 2: Dependency order in the model tree — spreadsheet first, sketches next, solid features last.

Stage 05

Version control: keeping parameters traceable

A FreeCAD file is a ZIP container with XML inside, so two people cannot merge edits to the same document. The practical workaround is to treat the spreadsheet as the source of truth and keep a plain-text copy of it. Exporting the parameter block to CSV before each release gives a diffable record of what changed between revisions.

File naming carries the rest of the history: bracket_rev03.FCStd, with the revision bumped on every geometry change and the sheet values recorded in the commit message. Binary files go into Git LFS or a shared drive; the CSV goes into the repository. Rebuilding a six-month-old part then means opening the matching revision instead of guessing which value was current.

The last link in the chain is export. Producing clean STL and STEP files is covered in the STL and STEP export guide, and the tolerance rules there depend directly on the units stored in the sheet. A mismatch between millimetre and inch parameters shows up as a part that is 25.4 times too large, and the error is visible only after the mesh is sliced.

Release checklist

Bump the revision in the file name, export the parameter CSV, run a full recompute, and confirm that every bound property reports a valid value in the report view before the file leaves the workstation.

Frequently asked questions

Can a spreadsheet drive a sketch constraint directly?

Yes. Open the sketch, select the dimensional constraint, and bind its value to Spreadsheet.alias in the property editor. The constraint then reads from the sheet on every recompute. The trade-off is that the value can no longer be typed in the sketch dialog.

Why does an expression fail after renaming a cell?

The expression stores the alias, not the address. Renaming the alias leaves the old name in the property field, and the recompute stops with a property-not-found message. Restore the alias name or update the expression.

How many parameters can one sheet hold?

There is no hard limit, but readability drops after roughly forty rows. Beyond that, split parameters into groups — global, per-part, per-fastener — and keep each group on its own sheet inside the same document.

Does a spreadsheet slow the model down?

Each bound property adds one edge to the dependency graph, so the cost is linear. A few dozen bindings are unnoticeable; several hundred bindings plus a deep feature tree turn a two-second rebuild into ten. Measure with the timer in the report view before optimising anything.

Can parameters be shared between documents?

Not natively. The common approach is to keep one master sheet in a separate document and link it, or to copy the alias block between files and re-bind the properties. Both approaches, together with naming conventions and tolerance strategy, are described in the modeling best practices reference.

Build the sheet first, the solid second

The sequence does not change: parameters in the spreadsheet, aliases on the cells, expressions on the properties, then geometry. Follow the same order and every file on this site stays compatible with the next guide in the chain.

FreeCAD US publishes this material for information and education only | content is reference material and is not professional financial advice | verify every setting against your own build and toolchain.