Commit Graph

77 Commits

Author SHA1 Message Date
Zheng, Lei
a8f11a4a50 Add "Auto element visibility" command
When enabled, it will hide all AsmElement, and AsmElementLink, and only
shown then when they are selected, or a AsmConstraint object is
selected in the tree view
2018-01-27 12:15:05 +08:00
Zheng, Lei
363a8cfeba Fix constraint toolbar active checking 2018-01-24 18:08:20 +08:00
Zheng, Lei
21e8c4dd84 Support sketch plane in various horizontal/vertical constraint 2018-01-24 13:50:22 +08:00
Zheng, Lei
cc412bdc22 Add SketchPlane constraint for easy 2D sketch
The SketchPlane expects the first element to be a planar face/edge to
define a work plane for any following draft wire/circle/arc elements.
The 2D constrainted elements can either be inside the defining
SketchPlane constraint, or other constrains following the SketchPlane
in the constraint group.

Add a new SketchPlane to define a new work plane for any following
draft elements. Add an empty SketchPlane to undefine the work plane,
effectively making any following draft elements free in 3D space.
2018-01-23 17:32:20 +08:00
Zheng, Lei
c56a9d85d7 Add mover support for draft wire and circle
* Draft wire points can be dragged individually.
* Draft wire individual edge can be moved and rotated.
* Draft circle/arc can be moved and rotated by dragging edge or face.
* Draft circle/arc radius can be changed by dragging vertex
* Draft arc first/last angle can be changed by dragging end points
2018-01-21 10:07:38 +08:00
Zheng, Lei
b087200e50 Add support for draft circle/arc
When added to an assembly, a normal part object has six degrees of
freedom, three positional and three rotational. A draft circle has one
additional dof, its radius. And a draft arc has three additional dof,
radius, first angle and last angle.
2018-01-20 16:36:51 +08:00
Zheng, Lei
05595e3f41 Add support for draft wire
Special treatment for non-closed-or-subdivided draft wire object
directly added into part group.  Instead of constraining on the object
placement, we shall constraint on individual points. In other word,
instead of making the draft wire's placement as free parameters, we
make the cooridnates of indvidual points as free parameters.
2018-01-20 16:36:38 +08:00
Zheng, Lei
cd9a60c29d Updated slvs submodule 2018-01-19 14:10:34 +08:00
Zheng, Lei
06403848e2 constraint: added more icons 2018-01-19 14:01:10 +08:00
Zheng, Lei
9d85f2bb61 Update Readme 2018-01-12 11:43:20 +08:00
Zheng, Lei
12f1670925 assembly: fix trace command 2018-01-08 15:31:19 +08:00
Zheng, Lei
92b42d2f71 assembly: improve autoSolve function 2018-01-08 11:53:41 +08:00
Zheng, Lei
3a252d48df Update readme 2018-01-08 11:53:35 +08:00
Zheng, Lei
76f3ed40d1 solver: fix sympy solver 2018-01-08 11:53:30 +08:00
Zheng, Lei
fb9ad1609d gui: fix assembly solve command
Fix selection detection, and undo/redo setup
2018-01-07 19:05:29 +08:00
Zheng, Lei
882faf9d53 assembly: improve auto recompute 2018-01-03 12:01:44 +08:00
Zheng, Lei
d2f88b969d assembly: change fixed part move behavior 2017-12-25 13:00:05 +08:00
Zheng, Lei
9dfc07a7a0 assembly: allow moving part by element 2017-12-25 12:59:46 +08:00
Zheng, Lei
eb6519ff8c Refactor undo/redo with FreeCAD.setActiveTransaction() 2017-12-24 18:43:34 +08:00
Zheng, Lei
089f3e1c20 Add script to build AppImage 2017-12-20 17:47:20 +08:00
Zheng, Lei
0ea8c1c13e Change git submodule scheme to https 2017-12-19 08:49:39 +08:00
Zheng, Lei
8f21c72f4c constraint: fix circle/arc related constraints 2017-12-15 08:14:02 +08:00
Zheng, Lei
0f85f9a2bc Fix readme typo 2017-12-15 08:13:48 +08:00
Zheng, Lei
0ec9932693 Add slvs python pre-built for win64 2017-12-13 03:59:16 +08:00
Zheng, Lei
a812c4f352 assembly: add CTRL key to bypass auto-solve 2017-12-11 10:31:32 +08:00
Zheng, Lei
d76902b215 Add support of origin and datum feature 2017-12-10 18:49:06 +08:00
Zheng, Lei
4ad32a084f assembly: change OnTopWhenSelected behavior
Now only whole object (AsmElement, AsmElementLink) selection activates
OnTopWhenSelected.
2017-12-10 18:48:14 +08:00
Zheng, Lei
c2662d8cfd constraint: add LockAngle option
LockAngle option is available to the following constraints,

* PlaneCoincident
* PlaneAlignment
* AxialAlignment
* MultiParallel
2017-12-09 13:27:38 +08:00
Zheng, Lei
9e98a55b07 gui: fix tree item move command 2017-12-09 13:26:00 +08:00
Zheng, Lei
f72e048295 sys_sympy: fix angle constraint 2017-12-09 13:25:36 +08:00
Zheng, Lei
584c53d619 Updated installation instruction in readme
Also reformat readme to be more git friendly
2017-12-07 11:00:04 +08:00
Zheng, Lei
176817a635 Migrate to new style FC module 2017-12-07 03:14:13 +08:00
Zheng, Lei
d6510681f8 Add Readme 2017-12-05 14:44:58 +08:00
Zheng, Lei
7c2ebac386 assembly: auto recompute on undo/redo while dragging 2017-12-04 21:02:40 +08:00
Zheng, Lei
eb06ef8fbd solver: solver rollback on failure while dragging 2017-12-04 20:25:35 +08:00
Zheng, Lei
5ac1dd7971 assembly: material override in ElementLink
Original override point is ViewProviderAsmConstraint, which will
override any material setting in ViewProviderAsmElementLink. It's
better to default override at the bottom hierarchy.
2017-12-04 16:12:53 +08:00
Zheng, Lei
61491fddca solver: fix solving linked part 2017-12-04 11:55:16 +08:00
Zheng, Lei
c738d24b7d assembly: fixed linked part moving 2017-12-04 11:55:11 +08:00
Zheng, Lei
bd6635207b solver: ensure recompute before solving 2017-12-03 18:20:54 +08:00
Zheng, Lei
1960144ef2 assembly: support label based element link 2017-12-02 17:02:10 +08:00
Zheng, Lei
15babab61d Drop usage of future and past module
FC Windows distribution doesn't have these modules
2017-11-22 01:13:42 +08:00
realthunder
5d277485ce
Merge pull request from luzpaz/trivial-typos
misc. trivial typos
2017-11-20 11:45:19 +08:00
luzpaz
9ae710b154 misc. trivial typos
Decided to quickly run `codespell` on the repo.
2017-11-19 19:11:56 -05:00
Zheng, Lei
9e2037a13b Disable linked properties in AsmElement and AsmElementLink 2017-11-16 18:31:08 +08:00
Zheng, Lei
8999ca6015 assembly: enable OnTopWhenSelected feature 2017-11-16 18:31:08 +08:00
Zheng, Lei
8383b20308 assembly: hide view object 'Visibility' property
The visibility property is incompatible with sub object visibility
control, so hide it to avoid confusion
2017-11-16 18:31:08 +08:00
Zheng, Lei
3c8e211b49 Enable undo in creating assembly command 2017-11-16 18:31:08 +08:00
Zheng, Lei
8f8cbea719 Fix context menu 2017-11-16 18:31:08 +08:00
Zheng, Lei
333d4f8824 Refactor checkable command, improve command checkActive() 2017-11-16 18:31:08 +08:00
Zheng, Lei
d69e5c8f88 assembly: make Group property readonly 2017-11-16 18:31:03 +08:00