GSoC 2023: Unified Measurement Facility
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Be nice to others! Respect the FreeCAD code of conduct!
GSoC 2023: Unified Measurement Facility
Hey there,
I'm David (hlorus), I'm motivated to participate in this years GSoC event. This thread is for discussion and feedback about the Unified Measurement Facility.
FreeCAD currently has several ways of measuring objects, causing confusion for users and making the learning curve steeper. The project aims to implement a generic measurement command that can be extended by workbenches, refactor and port existing commands to use the
new system, and polish existing measuring commands for a consistent user experience.
I'll be posting here about my progress and appreciate any kind of support and feedback.
Primary mentor: @wandererfan
Reference: GitHub issue
Working fork
I'm David (hlorus), I'm motivated to participate in this years GSoC event. This thread is for discussion and feedback about the Unified Measurement Facility.
FreeCAD currently has several ways of measuring objects, causing confusion for users and making the learning curve steeper. The project aims to implement a generic measurement command that can be extended by workbenches, refactor and port existing commands to use the
new system, and polish existing measuring commands for a consistent user experience.
I'll be posting here about my progress and appreciate any kind of support and feedback.
Primary mentor: @wandererfan
Reference: GitHub issue
Working fork
Re: GSoC 2023: Unified Measurement Facility
As far as existing functionality, there is also "delta X,Y,Z"
Gives the Delta values and distance between 2 points.
Start the macro
Select the first point in 3D view
Select the second point in 3D view
If the "SHIFT" key is pressed, the Delta value begin on coordinate 0,0,0 to point clicked (the coordinate 0,0,0 is displayed in red).
One option is possible for the macro stay resident (continuous) then push "Q" key to quit the macro, and option for impose the number of decimals or use the decimal in the preference option.
Macro version: 0.2
Last modified: 2020-10-23
FreeCAD version: All
Download: ToolBar Icon
Author: Mario52
Macro location: https://wiki.freecadweb.org/Macro_Delta_xyz
I wouldn't be without it - use it all the time.
Hopefully this can be added to your all encompassing thingy, please?
Gives the Delta values and distance between 2 points.
Start the macro
Select the first point in 3D view
Select the second point in 3D view
If the "SHIFT" key is pressed, the Delta value begin on coordinate 0,0,0 to point clicked (the coordinate 0,0,0 is displayed in red).
One option is possible for the macro stay resident (continuous) then push "Q" key to quit the macro, and option for impose the number of decimals or use the decimal in the preference option.
Macro version: 0.2
Last modified: 2020-10-23
FreeCAD version: All
Download: ToolBar Icon
Author: Mario52
Macro location: https://wiki.freecadweb.org/Macro_Delta_xyz
I wouldn't be without it - use it all the time.
Hopefully this can be added to your all encompassing thingy, please?
Re: GSoC 2023: Unified Measurement Facility
Interesting.
It is advisable to have a unique place were you could make measurements, and probably even a simple way to display annotated dimensions.
I make model for other people and having a quick way to makea screenshot of a dimension that lacks of a proper measure in project will be very welcomed.
Actually I have to:
- make a screenshot
- crop with an external program the 3dview content
- use another external program to annotate the image.
Avoiding the external annotation phase would be great.
Regards
Carlo D.
It is advisable to have a unique place were you could make measurements, and probably even a simple way to display annotated dimensions.
I make model for other people and having a quick way to makea screenshot of a dimension that lacks of a proper measure in project will be very welcomed.
Actually I have to:
- make a screenshot
- crop with an external program the 3dview content
- use another external program to annotate the image.
Avoiding the external annotation phase would be great.
Regards
Carlo D.
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/
- In deep articles on FreeCAD.
- Learning how to model with scripting.
- Various other stuffs.
Blog: https://okkmkblog.wordpress.com/
Re: GSoC 2023: Unified Measurement Facility
This is really great news, thanks for your effort.
I would appreciate if you could switch between different results and still keep your selection (maybe multiple results could be displayed at the same time). Interesting results would be, depending on the selection:
It would be also great if the tool could output the result in coordinates (absolute and relative to first selection)
I would appreciate if you could switch between different results and still keep your selection (maybe multiple results could be displayed at the same time). Interesting results would be, depending on the selection:
- Length (also of an arc) and Distance (min/max, also between two edges e.g. two circles or filleted faces)
- Angle (between three points, two lines, two surfaces or an arc)
- Area (of body or selected faces) and perimeter
- Volume
- Mass
- Center of Mass
- Center point (e.g. hole, arc, circle)
- Diameter (on edges/circles but also surfaces like holes)
- Radius (also on surfaces, e.g. fillets)
- Inertia (moment of inertia and area moment of inertia around a selected axis)
- Points
- Edges
- Surfaces
- Bodies, parts
- Midpoints, arc center
- Axis
- Intersection
- An individual "picking point" of the geometry under the mouse cursor if there is no select-able feature
It would be also great if the tool could output the result in coordinates (absolute and relative to first selection)
Re: GSoC 2023: Unified Measurement Facility
Hi
Thanks @bambuko
you have to study , enjoy
mario
Thanks @bambuko
have you tried Macro_FCInfo (info only with 1 object selected)maxwxyz wrote: ↑Sun May 07, 2023 9:04 am Length (also of an arc) and Distance (min/max, also between two edges e.g. two circles or filleted faces)
Angle (between three points, two lines, two surfaces or an arc)
Area (of body or selected faces) and perimeter
Volume
Mass
Center of Mass
Center point (e.g. hole, arc, circle)
Diameter (on edges/circles but also surfaces like holes)
Radius (also on surfaces, e.g. fillets)
Inertia (moment of inertia and area moment of inertia around a selected axis)
see Macro_Select_Hovering
and all type Macro_FCTreeView
you have to study , enjoy
mario
Maybe you need a special feature, go into Macros_recipes and Code_snippets, Topological_data_scripting.
My macros on Gist.github here complete macros Wiki and forum.
My macros on Gist.github here complete macros Wiki and forum.
Re: GSoC 2023: Unified Measurement Facility
Did you trad GSoC proposal document?
You are mixing too many different things.
This is focused on the measurement tool, eventually expanded for a simple annotation system.
Once this new code will be in place other coders could make specialized tools.
Regards
Carlo D.
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/
- In deep articles on FreeCAD.
- Learning how to model with scripting.
- Various other stuffs.
Blog: https://okkmkblog.wordpress.com/
Re: GSoC 2023: Unified Measurement Facility
Interested in this one. Will try to follow progress and advise if needed.
Re: GSoC 2023: Unified Measurement Facility
Just saw it, thanks for the reminder. I was fiddling around with the measurement tool and spiraled in new ideas
Awesome thanks! I never think of the add-ons BTW off-topic: is there a script or setting I can copy to a new machine when setting up FreeCAD to install all my last workspaces and macros?
And I am still curious if new measurement tools will be implemented.
Re: GSoC 2023: Unified Measurement Facility
Usually it suffice to save /Mod directory found in your user directory for WB and Macro folder.
but Macro folder place could be customized.
There are some posts around.
Regads
Carlo D.
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/
- In deep articles on FreeCAD.
- Learning how to model with scripting.
- Various other stuffs.
Blog: https://okkmkblog.wordpress.com/
Re: GSoC 2023: Unified Measurement Facility
Welcome David.
It is good to see someone take this project on. This is long overdue.
Thanks in advance for your time.
Dan Miel