Commit Graph

215 Commits

Author SHA1 Message Date
DeepSOIC
3e8b547354 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
8babf7c2dc PartDesign: transfer Datums to become AttachableObjects
Crude and quick, needs cleanup.
2016-04-12 18:12:12 +02:00
DeepSOIC
b6152364af 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
288873f13a 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
74c1b4e825 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
a0545327b0 PartDesign: make MoveFeatureInTree command use new insert functions 2016-04-12 18:12:11 +02:00
Alexander Golubev
e7dd714e63 PartDesign: add migrating sketch support to MoveFeature command 2016-04-12 18:12:11 +02:00
Alexander Golubev
94c066772b PartDesign: fix spacing in several files 2016-04-12 18:12:11 +02:00
Alexander Golubev
099d79b7fb 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
b733d38064 better active part and document tip handling 2016-04-12 18:12:10 +02:00
Stefan Tröger
d18cd54743 make part design loft functional 2016-04-12 18:12:10 +02:00
Danny Lepage
aa3a7283f1 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
8aca518b6e Fix Boolean operation tooltip text.
As reported by triplus
2016-04-12 18:12:10 +02:00
Stefan Tröger
7fc0111944 better pipe view handling 2016-04-12 18:12:09 +02:00
Stefan Tröger
468c380bd2 prevent inverted pipes and correct camera adjustment 2016-04-12 18:12:09 +02:00
Stefan Tröger
835085bc7c add basic part design pipe infrastructure 2016-04-12 18:12:09 +02:00
Stefan Tröger
eba61e360d make origin work correct with multiple parts 2016-04-12 18:12:08 +02:00
Stefan Tröger
69b02b6ac5 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
6301fce72c add part design thickness 2016-04-12 18:12:08 +02:00
Stefan Tröger
afee98c1e9 allow to add faces to fillet and chamfer 2016-04-12 18:12:07 +02:00
Stefan Tröger
3d32b098c4 don't create unneeded second body if part is created 2016-04-12 18:12:07 +02:00
Stefan Tröger
e48bdc5d89 make transform features work with non-sketch based features 2016-04-12 18:12:07 +02:00
DeepSOIC
da545f3978 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
a8f070ce8e Fix revolution and groove that mistakenly made a pocket. 2016-04-12 18:12:06 +02:00
Stefan Tröger
b0817ff086 allow non-sketch based additive and subtractive features 2016-04-12 18:12:06 +02:00
Stefan Tröger
d5d6b30af3 move feature pick dialog into the task view 2016-04-12 18:12:05 +02:00
blobfish
09e98d96cf Part Design: Fillet: Task: cleanup upon dialog rejection 2016-04-12 18:12:05 +02:00
Stefan Tröger
cb82f5f196 Show feature choose dialog for sketch if nothing is selected 2016-04-12 18:12:04 +02:00
blobfish
9b9d79d2fe Part Design: adding const char PDBODYKEY and using. No functional change. 2016-04-12 18:12:04 +02:00
blobfish
c159866747 Part Design: Sketch: command find planes with app::Part::BaseplaneTypes 2016-04-12 18:12:04 +02:00
blobfish
b7735098ba updating to setActiveObject call 2016-04-12 18:12:03 +02:00
jriegel
d7c932d714 Changing active object handling in PartDesign 2016-04-12 18:12:03 +02:00
jriegel
d87d0e8376 Assembly: Rename to setActiveBody and make link indeipendant Part initialization 2016-04-12 18:12:02 +02:00
jriegel
4d6e26e2fd Assembly: Document handling and some fixes 2016-04-12 18:12:02 +02:00
jriegel
cf9158abc9 Make Part working 2016-04-12 18:12:02 +02:00
jriegel
0288bb756f Moving Part creation into PartDesign Workbench 2016-04-12 18:12:02 +02:00
jmaustpc
81e2e4714d Add new icons to Assembly work bench
Including new body icons for the treeview and
PartDesign create new body command.
Move all Assembly constrains icons into their
own sub directory of the icons directory
add "STEP, IGES or BREP" to the tool tip
of Assembly add existing Component command
2016-04-12 18:12:00 +02:00
jrheinlaender
03ed49c3eb Fix bug that didn't allow to select base plane to create a sketch on it 2016-04-12 18:11:54 +02:00
jrheinlaender
c5ca269980 Allow transforming a Pattern feature into a MultiTransform feature 2016-04-12 18:11:54 +02:00
jrheinlaender
fbac1f4afb Prevent user from selecting a sketch plane that is not in the active body 2016-04-12 18:11:54 +02:00
jrheinlaender
983ef39f6a Added menu item to move a feature in the tree inside a body 2016-04-12 18:11:53 +02:00
jrheinlaender
dfedb85110 Two minor fixes 2016-04-12 18:11:53 +02:00
jrheinlaender
be7c6adc21 Allow moving features between bodies from context menu of tree view 2016-04-12 18:11:53 +02:00
jrheinlaender
8dabdf2eaf Miscellaneous fixes 2016-04-12 18:11:52 +02:00
jrheinlaender
d09eaa2168 Changed tree ordering of booleans and bodies 2016-04-12 18:11:51 +02:00
jrheinlaender
525c489fa5 Allow inserting at the beginning of a body 2016-04-12 18:11:51 +02:00
jrheinlaender
dfce69c4b0 Allow booleans of bodies in PartDesign 2016-04-12 18:11:51 +02:00
jrheinlaender
7be8911b2b Miscellaneous fixes 2016-04-12 18:11:51 +02:00
jrheinlaender
2733f236d2 Miscellaneous fixes 2016-04-12 18:11:50 +02:00
jrheinlaender
54a1707da7 Duplicate Selection: Add duplicated features to active Body 2016-04-12 18:11:50 +02:00