wmayer
c241c5b309
perform auto view fit when creating body object on sketch creation
2017-04-07 10:22:40 +02:00
Ian Rees
3f9aead061
Make Body object on creation of Sketch/Primitive
2017-04-06 19:26:19 +02:00
Sergo
34b2baeeea
issue #2808
2017-03-20 21:39:53 +01:00
usakhelo
13faa806e2
fix groove
2017-03-18 19:09:16 +01:00
Sergo
b55f33b41e
set referenceaxis properly and fix getaxis
2017-03-18 19:09:16 +01:00
Sergo
2ae0a313a2
fix revolve and groove when no sketches in selection or when no sketches in active body
2017-03-18 19:09:16 +01:00
Sergo
160b55e3cc
stop revolve if no sketches in selection
2017-03-18 19:09:16 +01:00
Sergo
a559078c7d
stop profile based and primitives if file is in undetermined workflow
2017-03-07 13:51:42 -03:00
Sergo
48ebbeb255
stop dressup features when applied to non-acitve body
2017-03-07 13:51:42 -03:00
Sergo
a2a497e8c6
fixing transformed features and guessworkflow
2017-03-07 13:51:42 -03:00
Sergo
516a979cf2
fixing dressup features
2017-03-07 13:51:42 -03:00
Sergo
eb48068420
fix pd tools from running when no active parts
2017-03-07 13:51:42 -03:00
Kunda
9410e751e9
source typo fixes pt4 (only on py3 merged code)
2017-03-02 13:47:21 +01:00
Stefan Tröger
22c26d043a
PartDesign: Adopt python interface to body group
2017-01-04 16:01:58 +01:00
Stefan Tröger
526d895a5d
PartDesign: Port body to be a origin group
2017-01-04 16:01:58 +01:00
Stefan Tröger
67d76b309c
Port Attacher codde to the extension framework
...
AttachableObjects are desired in multiple occasions, and the current AttachableObject is not flexible enough to handle all cases. Hence the code is portet to an extension, which gives the needed flexibility.
2016-12-07 06:41:40 +01:00
wmayer
acec8d0385
fixes #0002782 : Build error message
2016-11-19 14:27:55 +01:00
wmayer
7f3190889b
issue #0002760 : The result of an 'Undo' is shown too late.
2016-11-06 21:06:28 +01:00
Stefan Tröger
3e1ba47d61
Extensions: Handle new dynamic_cast's
2016-10-08 12:48:34 +02:00
Stefan Tröger
ab6151e71a
Extension: Fix test case
2016-10-08 12:48:34 +02:00
Stefan Tröger
6fa964c53f
Extensions: Introduce classes and port App groups
2016-10-08 12:48:34 +02:00
wmayer
dd7c91ddcf
fix -Wextra in PartDesign
2016-09-22 18:34:56 +02:00
wmayer
c2dd2e2b99
fix Coverity issues
2016-08-21 18:46:40 +02:00
Wolfgang E. Sanyer
d1d2f1f811
This commit adds getShape and setShape to TopoShape
2016-08-06 23:42:55 +02:00
wmayer
f85c76f6d9
replace tabs with spaces
2016-07-15 10:44:19 +02:00
Sergo
ca3deae602
refuse to create partdesign objects if no active body in document
2016-07-15 10:35:52 +02:00
DeepSOIC
92ccefa1d2
Attacher: use getModeName() instead of eMapModeStrings[]
...
getModeName() does range checking. eMapModeStrings[] will crash if out
of range.
2016-05-07 11:24:41 +02:00
DeepSOIC
39249581eb
Attacher: change suggestion routine interface
...
When another bit of information was needed to be extracted from mode
suggestion routine, it felt like listMapModes had too many arguments.
So, the arguments have been collapsed into a struct. This triggered a
few namespace-related changes, which lead to massive search-and-replace
changes all over FreeCAD.
So the only functional change carried out is the addition of reference
types readout to info returned by suggestor.
2016-05-07 11:24:41 +02:00
wmayer
f439a88c69
+ remove 'using namespace Part' inside header file
2016-04-13 16:20:31 +02:00
wmayer
ab43e18b00
+ remove 'using namespace Attacher' inside header file
2016-04-13 15:57:49 +02:00
Stefan Tröger
c40d25c87f
PartDesign: Fix body command
2016-04-12 18:12:23 +02:00
Stefan Tröger
3e79c09d10
Fix rebase error
2016-04-12 18:12:23 +02:00
Stefan Tröger
815a8e4d30
Remove ShapeBinder2D
...
As profile based features can work with faces and wires now ShapeBinder can do everything that needed ShapeBinder2D before.
2016-04-12 18:12:23 +02:00
Stefan Tröger
12e793bde8
PartDesign: Adopt pattern to face based features
2016-04-12 18:12:22 +02:00
Stefan Tröger
ae9dac71d7
PartDesign: Modeling features work with faces
...
-Rename Sketchbased to ProfileBased to show new behavior
-Adopt ProfileBased to make the relevant helper functions work with faces too
-Adopt features for unified use of helper functions
-Adopt commands to allow face selection
2016-04-12 18:12:22 +02:00
Stefan Tröger
732834c6d8
Handle external references for revolution et all
...
The reference selection, used in multiple part design features, treated body external references not corectly.
2016-04-12 18:12:22 +02:00
Alexander Golubev
27667cf5e6
Fix warnings introduced in new PartDesign
...
Mostly unused wariables and compare of signed & unsigned
2016-04-12 18:12:21 +02:00
Stefan Tröger
f058ae12e9
fix sketch classification for other body
...
hasObject does search recursive only in groups, but a body is not a group. Hence for sketches within a body this will always return false. Annother logic must be used to detect sketches in bodies.
2016-04-12 18:12:21 +02:00
Stefan Tröger
571e5d55d2
fix sketch selection in part design
...
validateSketch was faulty: as every sketch is valid (non is removed) it could happen that the returned number was >0 but the iterator firstValidSketch was NULL nontheless. The routine needed to be udated to make snese and the usage in prepareSketchbased together with it.
2016-04-12 18:12:21 +02:00
Stefan Tröger
ad5785654e
add only a single reference copy
2016-04-12 18:12:21 +02:00
Stefan Tröger
d878028c60
Fix sketch on face of other body or part
...
The shapebinder object reduces the number of faces to 1, hence the subshape to select is always Face1 and not the original face name
2016-04-12 18:12:21 +02:00
Stefan Tröger
3b43f2cdc5
fix body booleans
2016-04-12 18:12:20 +02:00
Stefan Tröger
f2ad7bde4b
PartDesign/Gui: minor fix sWhatsThis of text
2016-04-12 18:12:20 +02:00
Stefan Tröger
08287504fa
Fix crossreference handling
2016-04-12 18:12:20 +02:00
Stefan Tröger
a8781fdacc
handle independent copies more gracefully
2016-04-12 18:12:20 +02:00
Stefan Tröger
afc666e587
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
4e1a9c05cb
ask user if he creates inter part/body references
2016-04-12 18:12:20 +02:00
Stefan Tröger
00b230fdf8
Setup ShapeBinder Viewprovider and command
2016-04-12 18:12:19 +02:00
Stefan Tröger
b610dcc97c
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
3ed51ac4bd
PartDesign: add Origin to the Body and unstrap the module from the Parts
2016-04-12 18:12:18 +02:00