Commit Graph

112 Commits

Author SHA1 Message Date
Alexander Golubev
5459768c3f PartDesign: update body management commands according to the changes in body paradigms 2016-04-12 18:12:16 +02:00
Alexander Golubev
f6b0ed3a47 PartDesign: Body rework - add BaseFeature property and make Tip always point to solid 2016-04-12 18:12:16 +02:00
Alexander Golubev
e4f184a1f2 PartDesign/Workbench: fix a crash 2016-04-12 18:12:16 +02:00
Alexander Golubev
340c52a939 Share code for finding a body containing a feature 2016-04-12 18:12:14 +02:00
DeepSOIC
c940ee8674 PartDesign: disable migration
Temporary. Later, a way to manually invoke it should be made.
2016-04-12 18:12:14 +02:00
Alexander Golubev
118f3d2ebb remove unneeded sketcher tools from part design
Previously similar patch was commited by Stefan Tröger <stefantroeger@gmx.net> but lost during rebase.
2016-04-12 18:12:14 +02:00
Stefan Tröger
54dfe5cbff add part tool to task dialog for no selection 2016-04-12 18:12:13 +02:00
Stefan Tröger
23ebdda871 remove hole feature
A hole feature is something needed, however, the current implementation does not use the attacher code which would made it intuitive and compatibel to other workbench tools. A reimplementation is needed.
2016-04-12 18:12:13 +02:00
DeepSOIC
8504265bfc PartDesign: fix porting procedure...
...that caused an assert in attacher that back/front subshape strings
were used for attachment to App::Plane.
2016-04-12 18:12:13 +02:00
DeepSOIC
92e279bcc9 PartDesign: patch old partdesign porting for changes in Datums 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
Alexander Golubev
37ed464594 PartDesign/Workbench: make a message more translation-frendly 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
f50716c097 PartDesign/Workbench: move fix of sketch support into separate function
Outside PartDesign sketches can have no support plane for them. But
PartDesign doesn't allow that.
Move the code for migration of "free" sketches of planes
into a separate fuction so it may be reused.
2016-04-12 18:12:11 +02:00
Stefan Tröger
d18cd54743 make part design loft functional 2016-04-12 18:12:10 +02:00
Alexander Golubev
1635b5c807 PartDesign: remove Body::isFeature() because it's the same as BodyBase::hasFeature() 2016-04-12 18:12:10 +02:00
Stefan Tröger
b425c028ee Update pipe icon and add it to the taskwatcher 2016-04-12 18:12:09 +02:00
Stefan Tröger
022e432b77 fix part and body search for invalid objects 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
4231e9e429 fix crash on cancel primitive 2016-04-12 18:12:08 +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
27d46a6593 primitive bug fixes, add cylinder and sphere 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
Stefan Tröger
3690040dea basic infrastructure for part design primitives 2016-04-12 18:12:06 +02:00
blobfish
e002ca6087 PartDesign: Workbench: comment out switchToDocument inside 'slots'
This causing a crash when opening a previous versioned file while already in part design.
    Can't predict timing of migration call from signals.
2016-04-12 18:12:06 +02:00
blobfish
53edc2f06f Part Design: Gui: Workbench: assign activePart and activeBody when doc has tip 2016-04-12 18:12:05 +02:00
blobfish
a494a5344a Part Design: Workbench: commonize construciton of default part and body 2016-04-12 18:12:04 +02:00
blobfish
f0d0264cae PartDesign: Gui: Update doc after setuppart 2016-04-12 18:12:04 +02:00
Stefan Tröger
148f5a9b7a Remove BasePlanes from part design 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
74b667e634 PartDesign: adding some asserts to workbench 2016-04-12 18:12:04 +02:00
blobfish
512b68c553 PartDesign: Workbench: set active body post migration 2016-04-12 18:12:04 +02:00
blobfish
399ad04a32 Part Design: Workbench: don't try to remove active body 2016-04-12 18:12:04 +02:00
blobfish
5652cb4da4 not typo 2016-04-12 18:12:03 +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
6ee85f65f5 some fixes in Active object handling on Viewer 2016-04-12 18:12:03 +02:00
jriegel
56dfb99239 fix errors from merge of master 2016-04-12 18:12:03 +02:00
jriegel
06186e6dcf tchnical commit 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
15cf3387f4 Assembly: Add non PartDesign feature group to Part also 2016-04-12 18:12:02 +02:00
jriegel
5f4b0e867e Assembly: Add warning on conversion 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
Jan Rheinländer
4480ef9e84 Fix bug in PartDesign conversion that choked on unconsumed sketches 2016-04-12 18:12:00 +02:00
jrheinlaender
4cda43580e Fixed bug in Body conversion code 2016-04-12 18:11:58 +02:00
jrheinlaender
14b4a99e33 Fix bug in PartDesignGui Workbench that may cause a crash 2016-04-12 18:11:57 +02:00
jrheinlaender
44fdff91f5 Python code of Hole Feature 2016-04-12 18:11:56 +02:00