(Optional: toggle the toolbar to reference mode and create a named reference constraint: NCR)
Pad or revolve the sketch
Go to spreadsheet
On any cell type "s" and complete Sketch.Constraints.NCR (or any other constraint you used in the sketch)
You'll get an error message from spreadsheet: "failed to parse expresion".
The error does not arise if pad (or revolve) is not done.
If another body and sketch are created but not padded or revolved the constraints dimensions are accessible from spreadsheet.
OS: Ubuntu 18.04.3 LTS
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.18.3.
Build type: Release
Python version: 3.6.8
Qt version: 5.9.5
Coin version: 4.0.0a
OCC version: 7.3.0
If I rename the constraint to something different from "h" it works as expected. Could this be some special variable/value/...? Probably expression engine interprets it as unit HOUR (h) Check wiki Expressions units.
kisolre wrote: ↑Sun Sep 08, 2019 4:45 pm
If I rename the constraint to something different from "h" it works as expected. Could this be some special variable/value/...? Probably expression engine interprets it as unit HOUR (h) Check wiki Expressions units.
It happens when long names are used too. In some cases after typing the "s" (from Sketch) the word "Sketch" does not appears for auto completing...
...please try accessing "Stekch.Constraints.rodamientoRadioExtendido" (whose value is 45 mm) from the spreadsheet "data" in the attached file "rodamientoW.FCStd"
You cannot use spreadsheets for reading from a sketch and writing to it at the same time. I recommend to organize your model so that all values are defined in the spreadsheet where you do the calculations as well and then read these values from the sketch(es).