Commit Graph

82 Commits

Author SHA1 Message Date
Zheng, Lei
33629eecff assembly: add Offset property to AsmElementLink 2018-07-30 13:03:55 +08:00
Zheng, Lei
05f476c9e4 assembly: fix object deletion 2018-07-30 13:03:55 +08:00
Zheng, Lei
e0939d1ec2 assembly: support for derived assembly
Deriving assembly directly contains all parts from derived assembly.
And all derived parts are added as fixed part. The intention is mostly
for user to customize visibilities of the derived parts as a way of
controling the level of details.
2018-07-30 13:03:55 +08:00
Zheng, Lei
91cc933ec9 assembly: fix ViewProviderAsmElement default color 2018-07-30 13:03:55 +08:00
Zheng, Lei
1e4db01ff5 assembly: auto solve on constraint group change 2018-07-30 13:03:54 +08:00
Zheng, Lei
ad35683c87 Add support for constraint multiplication 2018-07-30 13:03:54 +08:00
Zheng, Lei
a6251981f4 assembly: make relation group optional 2018-07-30 13:03:54 +08:00
Zheng, Lei
0a24b81bde assembly: fix origin object selection in array 2018-07-30 13:03:54 +08:00
Zheng, Lei
5dacdb4fde gui: change auto element visibility command behavior 2018-07-30 13:03:54 +08:00
Zheng, Lei
2dcbb2e1fb assembly: remove logic of making AsmElementSketch 2018-07-30 13:03:54 +08:00
Zheng, Lei
548c784f65 assembly: fix canAutoSolve() 2018-07-30 13:03:54 +08:00
Zheng, Lei
58ecba3ca7 assembly: various fix of Assembly freezing feature 2018-07-30 13:03:54 +08:00
Zheng, Lei
3e06e1212f assembly: explicit copy shape in AsmElement 2018-07-30 13:03:54 +08:00
Zheng, Lei
4eb9910b02 assembly: fix support of link to a link array 2018-07-30 13:03:54 +08:00
Zheng, Lei
871b945cf6 assembly: use new API canAddToSceneGraph() 2018-07-30 13:03:54 +08:00
Zheng, Lei
c359f07870 gui: add GotoRelation command
Can either go from part or constraint to their corresponding relation
item.
2018-07-30 13:03:50 +08:00
Zheng, Lei
8cf599ec15 assembly: new relationGroup for part-constraint-relationship 2018-07-13 16:04:32 +08:00
Zheng, Lei
e63118d6b5 assembly: support freezing assembly
New property 'Freeze' added to assembly container to freeze any update
of the assembly.

AsmPartGroup and AsmElement has been change to bind to
Part::FeaturePython instead of App::FeaturePython, in order to be able
to hold its own shape when frozen. The new ChildViewProvider feature in
ViewProviderLink is used to display the native shape.
2018-07-13 11:25:56 +08:00
Zheng, Lei
e6bb489990 assembly: fix parts tracking for auto solving 2018-07-05 08:22:55 +08:00
Zheng, Lei
f77de1de6f assembly: deprecate AsmSeketchElement 2018-07-04 07:39:25 +08:00
Zheng, Lei
007254681d assembly: shorten some code 2018-07-04 07:39:00 +08:00
Zheng, Lei
e3bdfffec7 assembly: add 'Offset' property to AsmElement 2018-07-03 17:38:57 +08:00
Zheng, Lei
fba1254627 assembly: enable auto solve on active transaction 2018-07-03 17:37:37 +08:00
Zheng, Lei
f5dd9d42f2 assembly: sync getSubObjects() API changes 2018-06-30 13:47:09 +08:00
Zheng, Lei
735d6ac260 assembly: fix adding constraint in sub-assembly 2018-06-23 07:52:21 +08:00
Zheng, Lei
042c43ddd2 assembly: prevent deleting constraint group 2018-06-04 12:03:41 +08:00
Zheng, Lei
4b1a3b9de6 assembly: add support for Origin 2018-06-03 12:37:32 +08:00
Zheng, Lei
200ad8795f assembly: support color and visibility override 2018-05-24 15:27:20 +08:00
Zheng, Lei
61ccdf5bac assembly: fix Part.getShape() for Assembly container 2018-05-21 19:07:18 +08:00
Zheng, Lei
287642d34a assembly: fix workplane command activation 2018-04-19 18:01:12 +08:00
Zheng, Lei
508fcd7713 assembly: support dropObjectEx API changes 2018-03-26 11:50:01 +08:00
Zheng, Lei
951a1f5b81 assembly: support sketch object internal geometries 2018-02-18 12:50:40 +08:00
Zheng, Lei
458022bba4 assembly: enhance workplane function
New toolbar command to create workplane in XZ and ZY direction. Allow
workplane to be created based on all type of elements. The same
AsmWorkplane object can now also represent a line or a point.
2018-02-07 17:39:00 +08:00
luz.paz
fd1851a38b Misc. typo fixes 2018-02-05 05:28:09 -05:00
Zheng, Lei
d4992a4706 mover: support tracing any geometry element 2018-01-29 17:16:21 +08:00
Zheng, Lei
a2d639200f constraint: init constraint parameter
Add init() api to calculate the some of the constraints' parameter
(e.g. angle, distance, length, etc.) based on the existing elements.
This can reduce excessive movement when auto recompute is on.
2018-01-29 17:16:15 +08:00
Zheng, Lei
708668ed0b assembly: add missing transaction on auto recompute 2018-01-29 17:05:18 +08:00
Zheng, Lei
d2b3d8260d assembly: fix cases where property status is saved 2018-01-29 17:02:18 +08:00
Zheng, Lei
ac5194a013 constraint: auto label constraint object with type name 2018-01-28 06:14:17 +08:00
Zheng, Lei
a9b302c0ac assembly: no doc touch when auto changing element visibility 2018-01-27 18:01:55 +08:00
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
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
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
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