From 0bf22ffca8c62012d4c825f1d25e0a6a1cb553b9 Mon Sep 17 00:00:00 2001 From: FEA-eng <59876896+FEA-eng@users.noreply.github.com> Date: Wed, 27 Aug 2025 11:37:53 +0200 Subject: [PATCH] PartDesign: Update missed error message about multiple solids (#23392) * PartDesign: Update FeatureLoft.cpp * PartDesign: Update FeatureExtrude.cpp * PartDesign: Update FeaturePipe.cpp * PartDesign: Remove empty lines added by GitHub editor * PartDesign: Remove empty lines added by GitHub editor --- src/Mod/PartDesign/App/FeatureExtrude.cpp | 4 ++-- src/Mod/PartDesign/App/FeatureLoft.cpp | 2 +- src/Mod/PartDesign/App/FeaturePipe.cpp | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Mod/PartDesign/App/FeatureExtrude.cpp b/src/Mod/PartDesign/App/FeatureExtrude.cpp index 5257551903..fedc34cb82 100644 --- a/src/Mod/PartDesign/App/FeatureExtrude.cpp +++ b/src/Mod/PartDesign/App/FeatureExtrude.cpp @@ -588,7 +588,7 @@ App::DocumentObjectExecReturn* FeatureExtrude::buildExtrusion(ExtrudeOptions opt this->rawShape = prism; prism = refineShapeIfActive(prism); if (!isSingleSolidRuleSatisfied(prism.getShape())) { - return new App::DocumentObjectExecReturn(QT_TRANSLATE_NOOP("Exception", "Result has multiple solids: that is not currently supported.")); + return new App::DocumentObjectExecReturn(QT_TRANSLATE_NOOP("Exception", "Result has multiple solids: enable 'Allow Compounds' in the active body.")); } prism = getSolid(prism); this->Shape.setValue(prism); @@ -598,7 +598,7 @@ App::DocumentObjectExecReturn* FeatureExtrude::buildExtrusion(ExtrudeOptions opt this->rawShape = prism; prism = refineShapeIfActive(prism); if (!isSingleSolidRuleSatisfied(prism.getShape())) { - return new App::DocumentObjectExecReturn(QT_TRANSLATE_NOOP("Exception", "Result has multiple solids: that is not currently supported.")); + return new App::DocumentObjectExecReturn(QT_TRANSLATE_NOOP("Exception", "Result has multiple solids: enable 'Allow Compounds' in the active body.")); } this->Shape.setValue(prism); } diff --git a/src/Mod/PartDesign/App/FeatureLoft.cpp b/src/Mod/PartDesign/App/FeatureLoft.cpp index dac76bac8d..71ba58b861 100644 --- a/src/Mod/PartDesign/App/FeatureLoft.cpp +++ b/src/Mod/PartDesign/App/FeatureLoft.cpp @@ -309,7 +309,7 @@ App::DocumentObjectExecReturn *Loft::execute() this->rawShape = boolOp; boolOp = refineShapeIfActive(boolOp); if (!isSingleSolidRuleSatisfied(boolOp.getShape())) { - return new App::DocumentObjectExecReturn(QT_TRANSLATE_NOOP("Exception", "Result has multiple solids: that is not currently supported.")); + return new App::DocumentObjectExecReturn(QT_TRANSLATE_NOOP("Exception", "Result has multiple solids: enable 'Allow Compounds' in the active body.")); } boolOp = getSolid(boolOp); Shape.setValue(boolOp); diff --git a/src/Mod/PartDesign/App/FeaturePipe.cpp b/src/Mod/PartDesign/App/FeaturePipe.cpp index 89793acb80..ec3d7e3bf1 100644 --- a/src/Mod/PartDesign/App/FeaturePipe.cpp +++ b/src/Mod/PartDesign/App/FeaturePipe.cpp @@ -423,7 +423,7 @@ App::DocumentObjectExecReturn *Pipe::execute() if (!isSingleSolidRuleSatisfied(boolOp.getShape())) { return new App::DocumentObjectExecReturn(QT_TRANSLATE_NOOP("Exception", - "Result has multiple solids: that is not currently supported.")); + "Result has multiple solids: enable 'Allow Compounds' in the active body.")); } // store shape before refinement