Stefan Tröger
2ff2d29f02
Fix crossreference handling
2016-04-12 18:12:20 +02:00
Stefan Tröger
5725dd7721
handle independent copies more gracefully
2016-04-12 18:12:20 +02:00
Stefan Tröger
3bd09ea570
change point of reference feedback for datums
...
On datum creation it is better to ask the user on OK than on tool activation, as he might hit cancel (and then the created references are till there) or even more important, he could add additional external references within the dialog. The disadvantae is that if the user sets "cross reference" ge gets asked again every time he opens and leaves the dialog.
2016-04-12 18:12:20 +02:00
Stefan Tröger
d5e035741a
ask user if he creates inter part/body references
2016-04-12 18:12:20 +02:00
Stefan Tröger
e58ae2b616
Setup ShapeBinder Viewprovider and command
2016-04-12 18:12:19 +02:00
Stefan Tröger
9969aac671
fix dependent copy references
...
to make them work with sketches an additional Part2DObject reference needed to be created
2016-04-12 18:12:19 +02:00
Alexander Golubev
1a26f7551f
PartDesign: add Origin to the Body and unstrap the module from the Parts
2016-04-12 18:12:18 +02:00
Alexander Golubev
2c2d155ee9
OriginGroup: add new abstraction layer between the Part and the GeoFeatureGroup
2016-04-12 18:12:18 +02:00
Alexander Golubev
797d6d3a11
App/Origin: big refactoring
...
- Rebase App::Origin on App::DocumentObject
- Keep all control over the Origin structure inside the Origin and it's
ViewProvider
- Add OriginFeature class as common base for App::Plane and App::Line
- Rebase App::Plane and App::Line on top of newly created class and
move to the file.
- Change Origin's ViewProvider API associated with temporary display
- Lots of associated changes to files
- Several minor fixes
- Lots of new bugs
2016-04-12 18:12:18 +02:00
Alexander Golubev
abc925b62e
PartDesign/Gui: Make partDesign's add sketch command Workflow-aware
2016-04-12 18:12:17 +02:00
Alexander Golubev
c4f094bba4
PartDesign/Gui: rename some fonctions in ReferenceSelection.cpp
...
e.g. getPythonStr -> buildLinkListPythonStr etc
2016-04-12 18:12:17 +02:00
Alexander Golubev
c782a11aab
PartDesign/Gui: Move various utility stuff from Workbench to a separate file
...
Also do some header cleanup.
2016-04-12 18:12:17 +02:00
Alexander Golubev
444986e88a
PartDesign/Gui: move body commands to a separate file
2016-04-12 18:12:16 +02:00
Alexander Golubev
8c5d514b18
PartDesign: Body rework - add BaseFeature property and make Tip always point to solid
2016-04-12 18:12:16 +02:00
Alexander Golubev
55f3f52f54
PartDesign/Feature: add an optional parameter to getBaseObject() to prevent it from throwing exceptions
...
In most cases getBaseObject() is used with an exception handler which
only detects if it failed but not the reason. This modification allows
to use it without excess exception handlers.
Also add the same parameter to SketchBased::getVerifiedSketch().
2016-04-12 18:12:15 +02:00
Alexander Golubev
9db8afd716
PartDesignGui: move shared code for all dressUp features into common place.
...
Also this allows the old workflow for thickness and draft features.
2016-04-12 18:12:15 +02:00
Alexander Golubev
86db4c3215
PartDesign/Gui: enable sketches on datum planes inside bodies
2016-04-12 18:12:14 +02:00
Alexander Golubev
e586f55fb2
PartDesign/Gui: more old workflow support
...
* remove an error message if adding a sketchbased feature without a body
* add champfer or fillet old workflow support
Also rework finishFeature() so at least champfer and fillet may be
inserted into any place of any apropriate body(not only the active one) of the body.
2016-04-12 18:12:14 +02:00
Alexander Golubev
4590305921
PartDesign/Gui: enhance the TaskFeaturePick with new cotegory of sketches: notInBody
...
Also add option tp show already used sketches and fix some spacing.
2016-04-12 18:12:14 +02:00
DeepSOIC
16e4ce20f0
PartDesign workflow without part/body
...
PartDesign: make datum features work outside of body/part
PartDesign old workflow: remove a few messageboxes about no part
PartDesign: old workflow: multitransform without body
Still has visibility issues, but generally works.
2016-04-12 18:12:14 +02:00
Stefan Tröger
a8bd2f6f7f
prevent part design features from accidently cross referencing
2016-04-12 18:12:14 +02:00
Stefan Tröger
318c65eafd
fix independent copy and cross reference
2016-04-12 18:12:14 +02:00
Stefan Tröger
a35c231d2a
first take on enhanced feature pick task
2016-04-12 18:12:14 +02:00
Stefan Tröger
986623f462
fix loft tool naming
2016-04-12 18:12:13 +02:00
Stefan Tröger
d980952d31
fix body and part tool texts
2016-04-12 18:12:13 +02:00
DeepSOIC
72c70bcc50
Datum UI: fixes
...
* fix messagebox not popping when clicking OK but status is error
* accept preselection
* unify code for all datum commands
* edit selected datum if type matches, instead of creating new one
2016-04-12 18:12:13 +02:00
DeepSOIC
9e440b955c
PartDesign: transfer Datums to become AttachableObjects
...
Crude and quick, needs cleanup.
2016-04-12 18:12:12 +02:00
DeepSOIC
4800957858
Attacher: change Part2DObject's MapMode default to mmDeactivated, and set mode to mmFlatFace only when reading files of old format.
...
PartDesign, Sketcher: set mapping mode when setting support
Mapping mode mmFlatFace is no longer default, so an explicit assignment
is required.
2016-04-12 18:12:12 +02:00
DeepSOIC
4cc9b32e32
PartDesign: accomodating to sketch's multisupport
...
* FeatureSketchBased getSupportFace check for mapping mode
* Fixes failure to place sketches on DatumPlanes
2016-04-12 18:12:12 +02:00
DeepSOIC
eccff10d90
PartDesign: fix refuse to pad
...
When something was depending on a sketch (another sketch, for example),
padding (revolving, pocketing, etc) it was impossible. This is fixed.
Also, padding or revolving a single sketch twice was allowed (with a
warning msg displayed).
2016-04-12 18:12:11 +02:00
Alexander Golubev
bf58a7be2a
PartDesign: make MoveFeatureInTree command use new insert functions
2016-04-12 18:12:11 +02:00
Alexander Golubev
9c113357c5
PartDesign: add migrating sketch support to MoveFeature command
2016-04-12 18:12:11 +02:00
Alexander Golubev
ad461fc472
PartDesign: fix spacing in several files
2016-04-12 18:12:11 +02:00
Alexander Golubev
b9f4e10fa5
PartDesign: fix a couple of crashes
...
The first crash was reported here:
http://forum.freecadweb.org/viewtopic.php?f=20&t=11205&start=50#p91052
The second one accures then moving a feature from a body without solid
features.
2016-04-12 18:12:11 +02:00
Stefan Tröger
7f80e711f6
better active part and document tip handling
2016-04-12 18:12:10 +02:00
Stefan Tröger
d435e15a97
make part design loft functional
2016-04-12 18:12:10 +02:00
Danny Lepage
8aecb00a8d
Fix Debug Assert in CmdPartDesignDuplicateSelection::activated
...
Under Windows, "Edit/Duplicate selected object" raised a
Debug Assertion Failed "Expression: sequence not ordered".
2016-04-12 18:12:10 +02:00
Danny Lepage
63bdbe5561
Fix Boolean operation tooltip text.
...
As reported by triplus
2016-04-12 18:12:10 +02:00
Stefan Tröger
d796ca2bf9
better pipe view handling
2016-04-12 18:12:09 +02:00
Stefan Tröger
a727a9b93d
prevent inverted pipes and correct camera adjustment
2016-04-12 18:12:09 +02:00
Stefan Tröger
e7803eca61
add basic part design pipe infrastructure
2016-04-12 18:12:09 +02:00
Stefan Tröger
6347fe8c86
make origin work correct with multiple parts
2016-04-12 18:12:08 +02:00
Stefan Tröger
a19eaf201e
add command for adding a new part
...
note that the icon is a placeholder as currently parts have a system icon which can not be set for commands
2016-04-12 18:12:08 +02:00
Stefan Tröger
c3f35d9f05
add part design thickness
2016-04-12 18:12:08 +02:00
Stefan Tröger
fc1e8b8d17
allow to add faces to fillet and chamfer
2016-04-12 18:12:07 +02:00
Stefan Tröger
329064d671
don't create unneeded second body if part is created
2016-04-12 18:12:07 +02:00
Stefan Tröger
d923bebccc
make transform features work with non-sketch based features
2016-04-12 18:12:07 +02:00
DeepSOIC
439f392e88
Fix crash when adding datum and there's no active body
...
Plus fix double messageboxes about the lack of the body,
2016-04-12 18:12:07 +02:00
DeepSOIC
83777a9610
Fix revolution and groove that mistakenly made a pocket.
2016-04-12 18:12:06 +02:00
Stefan Tröger
9a2f5eea65
allow non-sketch based additive and subtractive features
2016-04-12 18:12:06 +02:00