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.
This commit is contained in:
DeepSOIC
2015-07-20 17:43:48 +03:00
committed by Stefan Tröger
parent 92a7811618
commit cd4dce2f1b
8 changed files with 112 additions and 70 deletions

View File

@@ -110,29 +110,6 @@ App::DocumentObjectExecReturn *Pad::execute(void)
base = TopoDS_Shape();
}
/*
// Find Body feature which owns this Pad and get the shape of the feature preceding this one for fusing
// This method was rejected in favour of the BaseFeature property because that makes the feature atomic (independent of the
// Body object). See
// https://sourceforge.net/apps/phpbb/free-cad/viewtopic.php?f=19&t=3831
// https://sourceforge.net/apps/phpbb/free-cad/viewtopic.php?f=19&t=3855
PartDesign::Body* body = getBody();
if (body == NULL) {
return new App::DocumentObjectExecReturn(
"In order to use PartDesign you need an active Body object in the document. "
"Please make one active or create one. If you have a legacy document "
"with PartDesign objects without Body, use the transfer function in "
"PartDesign to put them into a Body."
);
}
const Part::TopoShape& prevShape = body->getPreviousSolid(this);
TopoDS_Shape support;
if (prevShape.isNull())
// ignore, because support isn't mandatory
support = TopoDS_Shape();
else
support = prevShape._Shape;
*/
// get the Sketch plane
Base::Placement SketchPos = sketch->Placement.getValue();