Error messages

Here's the place for discussion related to coding in FreeCAD, C++ or Python. Design, interfaces and structures.
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Post Reply
Dex
Posts: 56
Joined: Tue Sep 26, 2017 4:52 pm

Error messages

Post by Dex »

It would be really helpful if broken constraints would be marked in sketcher. For example when I change a name of constraint in upper tree than all dependend sketches become marked as "error". Sometimes it takes a lot of time to remake all names. Ideally all constraints could be updated on rename:

1. create sketch with circle radius=5. Name the radius as radius
2018-03-02 08_24_57-Change radius.png
2018-03-02 08_24_57-Change radius.png (21.53 KiB) Viewed 1023 times

2. create new sketch with circle radius=radius+5mm
2018-03-02 08_26_50-Change radius.png
2018-03-02 08_26_50-Change radius.png (18.75 KiB) Viewed 1023 times
3. rename Sketch as new

4. check the constraint in Sketch001
2018-03-02 08_29_29-Insert radius.png
2018-03-02 08_29_29-Insert radius.png (15.04 KiB) Viewed 1023 times
The sketch name remain as "Sketch". Sometimes it is reported as error and sometimes not (as in this example). In more complicated projects it takes much time to resolve

Always forget...:
OS: Windows 7
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.17.13346 (Git)
Build type: Release
Branch: master
Hash: 22ee06de8441bfcc9fded2c6de4232d763fb11bc
Python version: 2.7.14
Qt version: 4.8.7
Coin version: 4.0.0a
OCC version: 7.1.0
Locale: Polish/Poland (pl_PL)
chrisb
Veteran
Posts: 54303
Joined: Tue Mar 17, 2015 9:14 am

Re: Error messages

Post by chrisb »

Renaming of Sketch works here, the references in the Expressions are preserved.

OS: Mac OS X
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.17.13346 (Git)
Build type: Release
Branch: (HEAD detached at 22ee06d)
Hash: 22ee06de8441bfcc9fded2c6de4232d763fb11bc
Python version: 2.7.14
Qt version: 5.6.2
Coin version: 4.0.0a
OCC version: 7.1.0
Locale: German/Germany (de_DE)
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
Dex
Posts: 56
Joined: Tue Sep 26, 2017 4:52 pm

Re: Error messages

Post by Dex »

I should be double checked because in my example after rename "Sketch" to "new" the reference remain as "Sketch.Constraints.radius+5" but should be "new.Constraints.radius+5".
Post Reply