From 77ef529c5ae6376d49f4e89330ba11c5c3b3def0 Mon Sep 17 00:00:00 2001 From: wandererfan Date: Sun, 9 Jul 2023 20:26:09 -0400 Subject: [PATCH] [TD]provide result of detail to other views --- src/Mod/TechDraw/App/DrawViewDetail.cpp | 3 +++ src/Mod/TechDraw/App/DrawViewDetail.h | 3 +++ 2 files changed, 6 insertions(+) diff --git a/src/Mod/TechDraw/App/DrawViewDetail.cpp b/src/Mod/TechDraw/App/DrawViewDetail.cpp index a35e11d30b..37b14af8db 100644 --- a/src/Mod/TechDraw/App/DrawViewDetail.cpp +++ b/src/Mod/TechDraw/App/DrawViewDetail.cpp @@ -332,6 +332,9 @@ void DrawViewDetail::makeDetailShape(const TopoDS_Shape& shape, DrawViewPart* dv } } + // save the detail shape for further processing + m_detailShape = pieces; + if (debugDetail()) { BRepTools::Write(tool, "DVDTool.brep"); //debug BRepTools::Write(copyShape, "DVDCopy.brep");//debug diff --git a/src/Mod/TechDraw/App/DrawViewDetail.h b/src/Mod/TechDraw/App/DrawViewDetail.h index 9fa099834b..f80173c9ad 100644 --- a/src/Mod/TechDraw/App/DrawViewDetail.h +++ b/src/Mod/TechDraw/App/DrawViewDetail.h @@ -87,6 +87,7 @@ public: gp_Dir& projDir); std::vector getDetailRefs() const override; + TopoDS_Shape getDetailShape() const { return m_detailShape; } public Q_SLOTS: void onMakeDetailFinished(void); @@ -106,6 +107,8 @@ protected: DrawViewPart* m_saveDvp; DrawViewSection* m_saveDvs; + + TopoDS_Shape m_detailShape; }; using DrawViewDetailPython = App::FeaturePythonT;