search
[last updated: 2025-09-19]
FreeCAD home page
FC Operation notes
working with multiple bodies
Using "External" spreadsheets
(link to:) FC.org spreadsheet WB
(link to:) FreeCAD Expressions
-----
This page still in edit, kind of a mess ...
--------------------------------------------------------------
The best way to do this, that is, to tie your dependent dimensions to each other,
is to parametize your drawing using the Spreadsheet Workbench.
This method will capture, in the spreadsheet, the dependencies between parameters
--------------------------------------------------------------
---------------------------------------------------------------
------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------
click in spreadsheet cell A1
enter name of parameter:
I used to do that. It made it easy to find a particular parameter that you might want to use in a calculation of some new parameter,
because when you searched for it, you'd enter "ss_ss" and it would bring up a list of all your parameters for you to easily pick from.
However, and maybe it's newer versions of FC, I don't do that anymore,
because when you're searching for an existing parameter, just enter two (minimum) characters of the parameter name,
(and they can be Any two characters, anywhere in the parameter name string)
and all parameters that match that criterion will come up.
You can enter next parameters in A2 (and below) now or later.
Proceed similarly for the rest of the parameters you've defined.
click in spreadsheet cell B1
right-click --> properties --> alias
enter alias name desired, press enter
Note the background color of the cell changes to yellow (after you've clicked outside the cell), indicating success.
Note that if you mouse-over the alias cell, the tool tip will show the alias name you've defined.
A list will display of all the parameter alias' that you've defined that start with 'ss'.
Select the one desired, click OK.
------------------------------------------------------------------------------------------------
HOWEVER, it's way better to use the alias name in your calculation rather than the cell reference,
because while the cell reference changes if you insert or delete rows (and yes, those are mostly updated when you do such inserts/deletes, but maybe they're not always, like when you do cuts...)
the alias names are fixed and won't change regardless of where you move them, ie. even if their location, their cell reference, changes.
------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------
Alias them as usual.
--------------
But FreeCAD does not tell all to you. As you can see in the dependency-graph, you need to add ".Shape" to the shown name of your edge and add ".Length" to get the length of the edge.
...
I have made an example, that uses the nondriving constraint, in order to set the pad-height of the part "pad" in an expression. (click on the blue thingy in order to see the expression)
The height of the box is then set to the length of an edge of the Pad.
You have to use the same naming in the spreadsheet, in order to get the data into a cell.
-----------------------------------------------------------------------------------------------
.
.
.
eof