(SOLVED) Sketcher: system-generated constraint name only usable after renaming? e.g. in the formula editor

Post here for help on using FreeCAD's graphical user interface (GUI).
Forum rules
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!
openBrain
Veteran
Posts: 9041
Joined: Fri Nov 09, 2018 5:38 pm
Contact:

Re: Sketcher: system-generated contraint name only usable after renaming? e.g. in the formula editor

Post by openBrain »

thomas-neemann wrote: Wed May 25, 2022 7:05 am I mean e.g. a macro which shows all variables of a document or a sketch. or a python line from which i can create a macro
If you mean "all variables that may be use in an expression", I know no way to do this. ;)
User avatar
thomas-neemann
Veteran
Posts: 11940
Joined: Wed Jan 22, 2020 6:03 pm
Location: Osnabrück DE 🇩🇪
Contact:

Re: Sketcher: system-generated contraint name only usable after renaming? e.g. in the formula editor

Post by thomas-neemann »

openBrain wrote: Wed May 25, 2022 7:06 am ...
ok, thanks for the cooperation
Gruß Dipl.-Ing. (FH) Thomas Neemann

https://www.youtube.com/@thomasneemann5 ... ry=freecad
User avatar
thomas-neemann
Veteran
Posts: 11940
Joined: Wed Jan 22, 2020 6:03 pm
Location: Osnabrück DE 🇩🇪
Contact:

Re: (SOLVED) Sketcher: system-generated constraint name only usable after renaming? e.g. in the formula editor

Post by thomas-neemann »

I found another solution with a point from draft

https://www.youtube.com/watch?v=oFndlpH52Ko

phpBB [video]
Gruß Dipl.-Ing. (FH) Thomas Neemann

https://www.youtube.com/@thomasneemann5 ... ry=freecad
chrisb
Veteran
Posts: 54273
Joined: Tue Mar 17, 2015 9:14 am

Re: (SOLVED) Sketcher: system-generated constraint name only usable after renaming? e.g. in the formula editor

Post by chrisb »

For a good and maintainable model you should give a sensible name anyway, and that will sure not be Constraint number X.
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
kisolre
Veteran
Posts: 4166
Joined: Wed Nov 21, 2018 1:13 pm

Re: Sketcher: system-generated contraint name only usable after renaming? e.g. in the formula editor

Post by kisolre »

thomas-neemann wrote: Wed May 25, 2022 7:05 am
openBrain wrote: Wed May 25, 2022 7:00 am ...
I mean e.g. a macro which shows all variables of a document or a sketch. or a python line from which i can create a macro
https://github.com/dprojects/scanObjects?
User avatar
thomas-neemann
Veteran
Posts: 11940
Joined: Wed Jan 22, 2020 6:03 pm
Location: Osnabrück DE 🇩🇪
Contact:

Re: Sketcher: system-generated contraint name only usable after renaming? e.g. in the formula editor

Post by thomas-neemann »

kisolre wrote: Wed May 25, 2022 5:54 pm ...
thanks, that looks good I'm looking at that
Gruß Dipl.-Ing. (FH) Thomas Neemann

https://www.youtube.com/@thomasneemann5 ... ry=freecad
User avatar
adrianinsaval
Veteran
Posts: 5552
Joined: Thu Apr 05, 2018 5:15 pm

Re: Sketcher: system-generated contraint name only usable after renaming? e.g. in the formula editor

Post by adrianinsaval »

thomas-neemann wrote: Wed May 25, 2022 6:40 am thank you for your explanation. Isn't it wise to display it here from the system as well?

Bildschirmfoto_2022-05-25_08-39-05.png
agreed
Post Reply