From 7a672a32074757b56d0f7196170a510c7d501cac Mon Sep 17 00:00:00 2001 From: theo-vt Date: Mon, 22 Sep 2025 11:47:20 -0400 Subject: [PATCH] PartDesign: Hole: Print error when no axis was found (#23659) * PartDesign: Hole: Print error when no axis was found * Remove unrelated string update --- src/Mod/PartDesign/App/FeatureHole.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Mod/PartDesign/App/FeatureHole.cpp b/src/Mod/PartDesign/App/FeatureHole.cpp index 69c2ed804b..c4b55787e4 100644 --- a/src/Mod/PartDesign/App/FeatureHole.cpp +++ b/src/Mod/PartDesign/App/FeatureHole.cpp @@ -2116,6 +2116,9 @@ App::DocumentObjectExecReturn* Hole::execute() } std::vector holes; auto compound = findHoles(holes, profileshape, protoHole); + if (holes.empty()) { + return new App::DocumentObjectExecReturn(QT_TRANSLATE_NOOP("Exception", "Hole error: Finding axis failed")); + } TopoShape result(0);