New feature demo: Measurements of selected elements displayed in bottom bar

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!
User avatar
easyw-fc
Veteran
Posts: 3629
Joined: Thu Jul 09, 2015 9:34 am

Re: New feature demo: Measurements of selected elements displayed in bottom bar

Post by easyw-fc »

onekk wrote: Fri Jan 06, 2023 3:34 pm Now the behaviour (0.20.2) is that when you select something you will have in the statusbar these informations:

Preselected: "description of what yo have selected" and some data.

But as example for an edge, it will be interesting to have the length if is a line or maybe if is a circle even the radius and the center.
That was exactly what I intended it is missing... the option to have some minimal but valuable information on what is clicked, as other big CADs just simple show.
User avatar
onekk
Veteran
Posts: 6144
Joined: Sat Jan 17, 2015 7:48 am
Contact:

Re: New feature demo: Measurements of selected elements displayed in bottom bar

Post by onekk »

dan-miel wrote: Fri Jan 06, 2023 6:52 pm ...
No problem for me, as the circle has radius and center and edge has all the information to retrieve start and stop point.

I do it almost every time I model something with circles.

Are standard API calls.

An arc has in his Curve property the circle and in his ParameterRange the start and ending point positions.

valueAt(parameter) will return the exact point as Vector.

I'm using my memory so I should check something maybe tomorrow I will expand this post with proper python test code.

Here a post that derive some point intersecting line and circles to obtain a wire. (I'm on mobile so it is difficult to post proper code).

https://forum.freecadweb.org/viewtopic. ... 96#p649196


Here in sketch_wire some example of the ParameterRange usage and the Curve.trim() to obtain circle portion (another possible way other than toShape(parameter1, parameter2)

https://forum.freecadweb.org/viewtopic. ... 26#p646926

Regards.

CarloD.
GitHub page: https://github.com/onekk/freecad-doc.
- In deep articles on FreeCAD.
- Learning how to model with scripting.
- Various other stuffs.

Blog: https://okkmkblog.wordpress.com/
demonlibra
Posts: 79
Joined: Tue Jan 21, 2020 1:11 pm

Re: New feature demo: Measurements of selected elements displayed in bottom bar

Post by demonlibra »

I hope someday this functionality will be in FreeCAD
Post Reply