Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Problem] Snapping should be available globally #12847

Open
2 tasks done
maxwxyz opened this issue Mar 10, 2024 · 2 comments
Open
2 tasks done

[Problem] Snapping should be available globally #12847

maxwxyz opened this issue Mar 10, 2024 · 2 comments
Labels
Core Issue or PR touches core sections (App, Gui, Base) of FreeCAD Feature FR for improvements or new features Snapping UI/UX WB Assembly Related to the Integrated Assembly Workbench WB Mesh Related to the Mesh Workbench WB Part Design Related to the Part Design Workbench WB Part Related to the Part Workbench WB Points Related to the Points Workbench WB Sketcher Related to the Sketcher Workbench WB Surface Related to the Surface Workbench WB TechDraw Related to the TechDraw Workbench

Comments

@maxwxyz
Copy link
Collaborator

maxwxyz commented Mar 10, 2024

Is there an existing issue for this?

  • I have searched the existing issues

Problem description

From the FreeCAD Day 2024 Complaint Session:
Snapping only works inside draft
Draft snapping and modification tools should be globally available.
Snapping only works inside the DraftWB and it should work everywhere.

Snapping tools should be available globally and be able to use in any workbench if possible. Examples would be to snap gemetry inside sketches, snap to positions while moving assemblies, snap when transforming using the Std_TransformManip, snapping when arragning TechDraw dimensions, when interactive tools are available: snap to define the extrude length in the 3d view,...

Related issues to snapping:

Full version info

OS: Windows 11 build 22631
Word size of FreeCAD: 64-bit
Version: 0.22.0dev.36277 (Git)
Build type: Release
Branch: main
Hash: 9e1903d46112b3660bf10c6a4537d728101d560b
Python 3.10.13, Qt 5.15.8, Coin 4.0.2, Vtk 9.2.6, OCC 7.6.3
Locale: German/Germany (de_DE)
Installed mods: 
  * 3DfindIT 1.2.0
  * BIM 2021.12.0
  * CfdOF 1.25.2
  * CurvedShapes 1.0.5
  * Curves 0.6.23
  * Defeaturing 1.2.2
  * fasteners 0.5.12
  * FEMbyGEN 2.1.0
  * freecad.gears 1.2.0
  * freecad_metal_workbench 0.0.1
  * OpenDark 2023.12.17
  * sheetmetal 0.4.2

Subproject(s) affected?

Core

Anything else?

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct
@maxwxyz maxwxyz added Core Issue or PR touches core sections (App, Gui, Base) of FreeCAD WB TechDraw Related to the TechDraw Workbench WB Part Design Related to the Part Design Workbench WB Part Related to the Part Workbench UI/UX Feature FR for improvements or new features WB Sketcher Related to the Sketcher Workbench WB Mesh Related to the Mesh Workbench WB Surface Related to the Surface Workbench WB Points Related to the Points Workbench WB Assembly Related to the Integrated Assembly Workbench labels Mar 10, 2024
@PaddleStroke
Copy link
Contributor

Sketcher has snapping to object. There are some features missing like snapping to intersection.

Having said that it's true that snapping could be made more global. In sketcher it's currently implemented in the viewprovidersketch by overriding the mouse position. This could be moved in Part module where it would be able to share between draft/sketcher/assembly.

@yorikvanhavre
Copy link
Member

Agree! That would be cool, and probably much faster than the current Draft system.
One could start simply by rewriting the Draft snap system in C++ :) It's pretty much self contained in one file: https://github.com/FreeCAD/FreeCAD/blob/main/src/Mod/Draft/draftguitools/gui_snapper.py
But this is maybe the opportunity to think to something better

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Core Issue or PR touches core sections (App, Gui, Base) of FreeCAD Feature FR for improvements or new features Snapping UI/UX WB Assembly Related to the Integrated Assembly Workbench WB Mesh Related to the Mesh Workbench WB Part Design Related to the Part Design Workbench WB Part Related to the Part Workbench WB Points Related to the Points Workbench WB Sketcher Related to the Sketcher Workbench WB Surface Related to the Surface Workbench WB TechDraw Related to the TechDraw Workbench
Projects
Development

No branches or pull requests

4 participants