I am trying to apply the following expression to the vertical 1000mm constraint in the sketch in the attached file:
Constraints.def/2
For some reason this results in a "Failed to parse expression" error. I do not understand what is causing this.
Sketch: mysterious "Failed to parse expression" error
Forum rules
and Helpful information
and Helpful information
IMPORTANT: Please click here and read this first, before asking for help
Also, be nice to others! Read the FreeCAD code of conduct!
Also, be nice to others! Read the FreeCAD code of conduct!
Sketch: mysterious "Failed to parse expression" error
- Attachments
-
- Window with 2 vertical fixed glass.FCStd
- (17.08 KiB) Downloaded 16 times
Re: Sketch: mysterious "Failed to parse expression" error
Did you try to replace 'def' with something else? It may be a reserved word.
Re: Sketch: mysterious "Failed to parse expression" error
FreeCAD infos? There were recently issues reported with expressions.
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
Re: Sketch: mysterious "Failed to parse expression" error
No problem here.
OS: macOS 10.16
Word size of FreeCAD: 64-bit
Version: 0.20.27008 (Git)
Build type: Release
Python version: 3.9.9
Qt version: 5.12.9
Coin version: 4.0.0
OCC version: 7.5.3
Locale: C/Default (C)
- Attachments
-
- def_cb.FCStd
- (11.27 KiB) Downloaded 8 times
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
Re: Sketch: mysterious "Failed to parse expression" error
Version info:
It seems to be related to the file.
Code: Select all
OS: Windows 8.1 Version 6.3 (Build 9600)
Word size of FreeCAD: 64-bit
Version: 0.20.26858 (Git)
Build type: Release
Branch: master
Hash: e209bc706d35121098f9bac779bc6b09c24ddd95
Python version: 3.8.6+
Qt version: 5.15.2
Coin version: 4.0.1
OCC version: 7.5.3
Locale: Dutch/Netherlands (nl_NL)
- thomas-neemann
- Veteran
- Posts: 11903
- Joined: Wed Jan 22, 2020 6:03 pm
- Location: Osnabrück DE 🇩🇪
- Contact:
Re: Sketch: mysterious "Failed to parse expression" error
what crisb did works here too
OS: Ubuntu 20.04.1 LTS (XFCE/xubuntu)
Word size of FreeCAD: 64-bit
Version: 0.20.27008 (Git) AppImage
Build type: Release
Branch: (HEAD detached at 9162733)
Hash: 91627338a44371fe9a8e815b4900f62558af98a1
Python version: 3.9.9
Qt version: 5.12.9
Coin version: 4.0.0
OCC version: 7.5.3
Locale: German/Germany (de_DE)
Re: Sketch: mysterious "Failed to parse expression" error
Recreating the problematic dimensional constraint solves it.