FreeCAD: master 6a16910b

Author Committer Branch Timestamp Parent
Abdullah Tahiri wmayer master 2015-08-05 14:45:27 master ee436121
Changeset Sketcher: UI Copy Support & 2D Array python command rework

==========================================================

- Support for copying geometric elements in the sketcher with Ctrl+C (or using the still missing icon). It will show you the vector of displacement from the
"reference point". The reference point can be chosen by the user (although it is not necessary to do it so) by making the point the user wish to be the reference point
the last selected element. It conveniently incorporates "autoconstraints", so that you can make this point (the one of the copy) directly coincident with any other point in the sketch.

- Python 2D array command modified to lock elements position using construction lines and constraints.
- Support for different spacing between u and v directions (the direction of the cols and the direction of the rows).

- Support to avoid copying DistanceX and DistanceY constraints when used for locking a point. This means that if the geometry that you copy(array) is
fully constraint, the resulting 2D array is also fully constraint.

- UI support for creating 2D linear arrays in the sketcher.
- Bug fix in python addArray, wrong line copy startingpoint calculation fixed.

How to create a 2D array in the sketcher:
1. Select your geometric elements.
2. Click the button
3. Fill in the rows/cols and preferences on spacing and constraining each element of the array
4. Click Ok
5. Define the direction of the cols of the array and click
mod - src/Mod/Sketcher/App/SketchObject.cpp Diff File
mod - src/Mod/Sketcher/App/SketchObject.h Diff File
mod - src/Mod/Sketcher/App/SketchObjectPyImp.cpp Diff File
mod - src/Mod/Sketcher/Gui/CMakeLists.txt Diff File
mod - src/Mod/Sketcher/Gui/CommandSketcherTools.cpp Diff File
add - src/Mod/Sketcher/Gui/SketchLinearArrayDialog.cpp Diff File
add - src/Mod/Sketcher/Gui/SketchLinearArrayDialog.h Diff File
add - src/Mod/Sketcher/Gui/SketchLinearArrayDialog.ui Diff File
mod - src/Mod/Sketcher/Gui/Workbench.cpp Diff File