Feature request: Default way for naming derived dimensions.

Have some feature requests, feedback, cool stuff to share, or want to know where FreeCAD is going? This is the place.
Forum rules
Be nice to others! Read the FreeCAD code of conduct!
jruiz
Posts: 95
Joined: Tue Oct 28, 2014 1:07 pm

Feature request: Default way for naming derived dimensions.

Postby jruiz » Tue Aug 27, 2019 1:25 pm

  • Consider a fully constrained sketch.
  • Suppose, for example, the distance D between two points arising in the sketch.
Wouldn't it be nice to name D for using/referencing it later in the project? That is without adding superfluous constrains.
For example in the attached image the needed parameter would be the length of "line (Edge3)"
Attachments
hypo.png
hypo.png (157.07 KiB) Viewed 555 times
Last edited by jruiz on Thu Aug 29, 2019 12:09 pm, edited 3 times in total.
User avatar
DeepSOIC
Posts: 7017
Joined: Fri Aug 29, 2014 12:45 am
Location: Saint-Petersburg, Russia

Re: Feature request: Name derived dimensions.

Postby DeepSOIC » Tue Aug 27, 2019 1:53 pm

chrisb
Posts: 18767
Joined: Tue Mar 17, 2015 9:14 am

Re: Feature request: Name derived dimensions.

Postby chrisb » Tue Aug 27, 2019 4:28 pm

jruiz wrote:
Tue Aug 27, 2019 1:25 pm
needed parameter would be the length of "line (Edge3)"
Just in case: don't give that name to the (blue) reference constraint if you want to use it in an expression. Use only characters, underscores and numbers; start with a character. Especially: no blanks, no brackets, no point, no colon, no -,+,*,/.
jruiz
Posts: 95
Joined: Tue Oct 28, 2014 1:07 pm

Re: Feature request: Name derived dimensions.

Postby jruiz » Tue Aug 27, 2019 5:30 pm

Excellent!
Thanks a lot.
BTW, it would be very useful to have the option of naming the "blue constrain" when "creating" it.
Last edited by jruiz on Tue Aug 27, 2019 5:34 pm, edited 1 time in total.
User avatar
Kunda1
Posts: 5759
Joined: Thu Jan 05, 2017 9:03 pm

Re: Feature request: Name derived dimensions.

Postby Kunda1 » Tue Aug 27, 2019 5:31 pm

Should it be marked [Solved] then?
Want to contribute back to FC? Checkout:
#lowhangingfruit | Use the Source, Luke. | How to Help FreeCAD | How to report FC bugs and features
jruiz
Posts: 95
Joined: Tue Oct 28, 2014 1:07 pm

Re: Feature request: Name derived dimensions.

Postby jruiz » Tue Aug 27, 2019 5:37 pm

Kunda1 wrote:
Tue Aug 27, 2019 5:31 pm
Should it be marked [Solved] then?
What do you think about adding the option of naming the "blue constrain" when creating it?
User avatar
DeepSOIC
Posts: 7017
Joined: Fri Aug 29, 2014 12:45 am
Location: Saint-Petersburg, Russia

Re: Feature request: Name derived dimensions.

Postby DeepSOIC » Tue Aug 27, 2019 5:39 pm

Only if not in the current blocking pop-up style. If on a task panel, +1.
kisolre
Posts: 1360
Joined: Wed Nov 21, 2018 1:13 pm

Re: [Solved]Feature request: Name derived dimensions.

Postby kisolre » Tue Aug 27, 2019 6:21 pm

Reference constraints are not always created to be used elsewere. So them having names is not always needed and will be a nuisance if always required. For example I frequently change real to reference dimensions to check possible range of change or other constraint scheme. I dont need names for those.
RatonLaveur
Posts: 339
Joined: Wed Mar 27, 2019 10:45 am

Re: [Solved]Feature request: Name derived dimensions.

Postby RatonLaveur » Tue Aug 27, 2019 6:39 pm

I already chipped in this week about this, but since the conversation seems to continue here here's my take on it:

Switching from normal to construction geometry changes nothing of the FreeCAD behaviour except it's now blue. Blue lines are editable normally.

Switching from normal to reference constraint at the moment not only intereferes with auto update with the bogus redundancy conflict (being solved already) but also prevents you from optional naming (if trying to name it,the constraint goes back to real constraint) and from editing (switches to real constraint).

In my opinion this is both counter intuitive and lead me to significant frustration. The obvious bias towards real constraints is offensive and us, reference constraint lovers feel slighted! :)

Currently naming a reference constraint does work by editing it manually in the constraints list, which means functionality is not impaired. But intuitiveness and user friendliness (as well as logic in my opinion) are suffering.
User avatar
DeepSOIC
Posts: 7017
Joined: Fri Aug 29, 2014 12:45 am
Location: Saint-Petersburg, Russia

Re: [Solved]Feature request: Name derived dimensions.

Postby DeepSOIC » Tue Aug 27, 2019 8:15 pm

RatonLaveur wrote:
Tue Aug 27, 2019 6:39 pm
Currently naming a reference constraint does work by editing it manually in the constraints list, which means functionality is not impaired. But intuitiveness and user friendliness (as well as logic in my opinion) are suffering.
I totally agree, it should be improved. The constraint becoming red after OKing the pop-up is totally unintuitive (but useful in some situations).