Revise multiple solids message
This commit is contained in:
committed by
Yorik van Havre
parent
c74ea1d999
commit
7e781bcfd0
@@ -144,7 +144,7 @@ App::DocumentObjectExecReturn *Boolean::execute(void)
|
||||
|
||||
int solidCount = countSolids(result);
|
||||
if (solidCount > 1) {
|
||||
return new App::DocumentObjectExecReturn("Boolean: Result has multiple solids. Check parameters.");
|
||||
return new App::DocumentObjectExecReturn("Boolean: Result has multiple solids. This is not supported at this time.");
|
||||
}
|
||||
|
||||
this->Shape.setValue(getSolid(result));
|
||||
|
||||
@@ -127,7 +127,7 @@ App::DocumentObjectExecReturn *Chamfer::execute(void)
|
||||
}
|
||||
int solidCount = countSolids(shape);
|
||||
if (solidCount > 1) {
|
||||
return new App::DocumentObjectExecReturn("Chamfer: Result has multiple solids. Check parameters.");
|
||||
return new App::DocumentObjectExecReturn("Chamfer: Result has multiple solids. This is not supported at this time.");
|
||||
}
|
||||
|
||||
this->Shape.setValue(getSolid(shape));
|
||||
|
||||
@@ -306,7 +306,7 @@ App::DocumentObjectExecReturn *Draft::execute(void)
|
||||
|
||||
int solidCount = countSolids(shape);
|
||||
if (solidCount > 1) {
|
||||
return new App::DocumentObjectExecReturn("Fuse: Result has multiple solids. Check parameters.");
|
||||
return new App::DocumentObjectExecReturn("Fuse: Result has multiple solids. This is not supported at this time.");
|
||||
}
|
||||
|
||||
this->Shape.setValue(getSolid(shape));
|
||||
|
||||
@@ -120,7 +120,7 @@ App::DocumentObjectExecReturn *Fillet::execute(void)
|
||||
|
||||
int solidCount = countSolids(shape);
|
||||
if (solidCount > 1) {
|
||||
return new App::DocumentObjectExecReturn("Fillet: Result has multiple solids. Check parameters.");
|
||||
return new App::DocumentObjectExecReturn("Fillet: Result has multiple solids. This is not supported at this time.");
|
||||
}
|
||||
|
||||
this->Shape.setValue(getSolid(shape));
|
||||
|
||||
@@ -158,7 +158,7 @@ App::DocumentObjectExecReturn *Groove::execute(void)
|
||||
|
||||
int solidCount = countSolids(result);
|
||||
if (solidCount > 1) {
|
||||
return new App::DocumentObjectExecReturn("Groove: Result has multiple solids. Check parameters.");
|
||||
return new App::DocumentObjectExecReturn("Groove: Result has multiple solids. This is not supported at this time.");
|
||||
}
|
||||
|
||||
solRes = refineShapeIfActive(solRes);
|
||||
|
||||
@@ -1259,7 +1259,7 @@ App::DocumentObjectExecReturn *Hole::execute(void)
|
||||
|
||||
int solidCount = countSolids(base);
|
||||
if (solidCount > 1) {
|
||||
return new App::DocumentObjectExecReturn("Hole: Result has multiple solids. Check parameters.");
|
||||
return new App::DocumentObjectExecReturn("Hole: Result has multiple solids. This is not supported at this time.");
|
||||
}
|
||||
|
||||
this->Shape.setValue(base);
|
||||
|
||||
@@ -195,7 +195,7 @@ App::DocumentObjectExecReturn *Loft::execute(void)
|
||||
return new App::DocumentObjectExecReturn("Loft: Resulting shape is not a solid");
|
||||
int solidCount = countSolids(boolOp);
|
||||
if (solidCount > 1) {
|
||||
return new App::DocumentObjectExecReturn("Loft: Result has multiple solids. Check parameters.");
|
||||
return new App::DocumentObjectExecReturn("Loft: Result has multiple solids. This is not supported at this time.");
|
||||
}
|
||||
|
||||
boolOp = refineShapeIfActive(boolOp);
|
||||
@@ -213,7 +213,7 @@ App::DocumentObjectExecReturn *Loft::execute(void)
|
||||
return new App::DocumentObjectExecReturn("Loft: Resulting shape is not a solid");
|
||||
int solidCount = countSolids(boolOp);
|
||||
if (solidCount > 1) {
|
||||
return new App::DocumentObjectExecReturn("Loft: Result has multiple solids. Check parameters.");
|
||||
return new App::DocumentObjectExecReturn("Loft: Result has multiple solids. This is not supported at this time.");
|
||||
}
|
||||
|
||||
boolOp = refineShapeIfActive(boolOp);
|
||||
|
||||
@@ -228,7 +228,7 @@ App::DocumentObjectExecReturn *Pad::execute(void)
|
||||
|
||||
int solidCount = countSolids(result);
|
||||
if (solidCount > 1) {
|
||||
return new App::DocumentObjectExecReturn("Pad: Result has multiple solids. Check parameters.");
|
||||
return new App::DocumentObjectExecReturn("Pad: Result has multiple solids. This is not supported at this time.");
|
||||
}
|
||||
|
||||
solRes = refineShapeIfActive(solRes);
|
||||
@@ -236,7 +236,7 @@ App::DocumentObjectExecReturn *Pad::execute(void)
|
||||
} else {
|
||||
int solidCount = countSolids(prism);
|
||||
if (solidCount > 1) {
|
||||
return new App::DocumentObjectExecReturn("Pad: Result has multiple solids. Check parameters.");
|
||||
return new App::DocumentObjectExecReturn("Pad: Result has multiple solids. This is not supported at this time.");
|
||||
}
|
||||
|
||||
this->Shape.setValue(getSolid(prism));
|
||||
|
||||
@@ -316,7 +316,7 @@ App::DocumentObjectExecReturn *Pipe::execute(void)
|
||||
|
||||
int solidCount = countSolids(boolOp);
|
||||
if (solidCount > 1) {
|
||||
return new App::DocumentObjectExecReturn("Pipe: Result has multiple solids. Check parameters.");
|
||||
return new App::DocumentObjectExecReturn("Pipe: Result has multiple solids. This is not supported at this time.");
|
||||
}
|
||||
|
||||
boolOp = refineShapeIfActive(boolOp);
|
||||
@@ -335,7 +335,7 @@ App::DocumentObjectExecReturn *Pipe::execute(void)
|
||||
|
||||
int solidCount = countSolids(boolOp);
|
||||
if (solidCount > 1) {
|
||||
return new App::DocumentObjectExecReturn("Pipe: Result has multiple solids. Check parameters.");
|
||||
return new App::DocumentObjectExecReturn("Pipe: Result has multiple solids. This is not supported at this time.");
|
||||
}
|
||||
|
||||
boolOp = refineShapeIfActive(boolOp);
|
||||
|
||||
@@ -185,7 +185,7 @@ App::DocumentObjectExecReturn *Pocket::execute(void)
|
||||
|
||||
int prismCount = countSolids(prism);
|
||||
if (prismCount > 1) {
|
||||
return new App::DocumentObjectExecReturn("Pocket: Result has multiple solids. Check parameters.");
|
||||
return new App::DocumentObjectExecReturn("Pocket: Result has multiple solids. This is not supported at this time.");
|
||||
}
|
||||
|
||||
this->Shape.setValue(getSolid(prism));
|
||||
@@ -213,7 +213,7 @@ App::DocumentObjectExecReturn *Pocket::execute(void)
|
||||
|
||||
int solidCount = countSolids(result);
|
||||
if (solidCount > 1) {
|
||||
return new App::DocumentObjectExecReturn("Pocket: Result has multiple solids. Check parameters.");
|
||||
return new App::DocumentObjectExecReturn("Pocket: Result has multiple solids. This is not supported at this time.");
|
||||
|
||||
}
|
||||
solRes = refineShapeIfActive(solRes);
|
||||
|
||||
@@ -127,7 +127,7 @@ App::DocumentObjectExecReturn* FeaturePrimitive::execute(const TopoDS_Shape& pri
|
||||
|
||||
int solidCount = countSolids(boolOp);
|
||||
if (solidCount > 1) {
|
||||
return new App::DocumentObjectExecReturn("Additive: Result has multiple solids. Check parameters.");
|
||||
return new App::DocumentObjectExecReturn("Additive: Result has multiple solids. This is not supported at this time.");
|
||||
}
|
||||
|
||||
boolOp = refineShapeIfActive(boolOp);
|
||||
@@ -147,7 +147,7 @@ App::DocumentObjectExecReturn* FeaturePrimitive::execute(const TopoDS_Shape& pri
|
||||
|
||||
int solidCount = countSolids(boolOp);
|
||||
if (solidCount > 1) {
|
||||
return new App::DocumentObjectExecReturn("Subtractive: Result has multiple solids. Check parameters.");
|
||||
return new App::DocumentObjectExecReturn("Subtractive: Result has multiple solids. This is not supported at this time.");
|
||||
}
|
||||
|
||||
boolOp = refineShapeIfActive(boolOp);
|
||||
|
||||
@@ -381,7 +381,7 @@ App::DocumentObjectExecReturn *Transformed::execute(void)
|
||||
|
||||
int solidCount = countSolids(support);
|
||||
if (solidCount > 1) {
|
||||
return new App::DocumentObjectExecReturn("Transformed: Result has multiple solids. Check parameters.");
|
||||
return new App::DocumentObjectExecReturn("Transformed: Result has multiple solids. This is not supported at this time.");
|
||||
}
|
||||
|
||||
this->Shape.setValue(getSolid(support));
|
||||
|
||||
Reference in New Issue
Block a user