From 52e68abc10e8cee9dc51185df077ea865ef32905 Mon Sep 17 00:00:00 2001 From: PaddleStroke Date: Sat, 18 Jan 2025 11:04:06 +0100 Subject: [PATCH] PartDesign: replace part design datum commands by the core ones --- src/Mod/PartDesign/Gui/Workbench.cpp | 54 ++++++++++++++-------------- 1 file changed, 27 insertions(+), 27 deletions(-) diff --git a/src/Mod/PartDesign/Gui/Workbench.cpp b/src/Mod/PartDesign/Gui/Workbench.cpp index 21f0510a99..45cf4f449e 100644 --- a/src/Mod/PartDesign/Gui/Workbench.cpp +++ b/src/Mod/PartDesign/Gui/Workbench.cpp @@ -169,10 +169,10 @@ void Workbench::activated() std::vector Watcher; const char* Vertex[] = { - "PartDesign_Point", - "PartDesign_Line", - "PartDesign_Plane", - "PartDesign_CoordinateSystem", + "Part_DatumPoint", + "Part_DatumLine", + "Part_DatumPlane", + "Part_CoordinateSystem", nullptr}; Watcher.push_back(new Gui::TaskView::TaskWatcherCommands( "SELECT Part::Feature SUBELEMENT Vertex COUNT 1..", @@ -184,10 +184,10 @@ void Workbench::activated() const char* Edge[] = { "PartDesign_Fillet", "PartDesign_Chamfer", - "PartDesign_Point", - "PartDesign_Line", - "PartDesign_Plane", - "PartDesign_CoordinateSystem", + "Part_DatumPoint", + "Part_DatumLine", + "Part_DatumPlane", + "Part_CoordinateSystem", nullptr}; Watcher.push_back(new Gui::TaskView::TaskWatcherCommands( "SELECT Part::Feature SUBELEMENT Edge COUNT 1..", @@ -202,10 +202,10 @@ void Workbench::activated() "PartDesign_Chamfer", "PartDesign_Draft", "PartDesign_Thickness", - "PartDesign_Point", - "PartDesign_Line", - "PartDesign_Plane", - "PartDesign_CoordinateSystem", + "Part_DatumPoint", + "Part_DatumLine", + "Part_DatumPlane", + "Part_CoordinateSystem", nullptr}; Watcher.push_back(new Gui::TaskView::TaskWatcherCommands( "SELECT Part::Feature SUBELEMENT Face COUNT 1", @@ -236,10 +236,10 @@ void Workbench::activated() const char* Plane1[] = { "PartDesign_NewSketch", - "PartDesign_Plane", - "PartDesign_Line", - "PartDesign_Point", - "PartDesign_CoordinateSystem", + "Part_DatumPoint", + "Part_DatumLine", + "Part_DatumPlane", + "Part_CoordinateSystem", nullptr}; Watcher.push_back(new Gui::TaskView::TaskWatcherCommands( "SELECT App::Plane COUNT 1", @@ -249,10 +249,10 @@ void Workbench::activated() )); const char* Plane2[] = { "PartDesign_NewSketch", - "PartDesign_Point", - "PartDesign_Line", - "PartDesign_Plane", - "PartDesign_CoordinateSystem", + "Part_DatumPoint", + "Part_DatumLine", + "Part_DatumPlane", + "Part_CoordinateSystem", nullptr}; Watcher.push_back(new Gui::TaskView::TaskWatcherCommands( "SELECT PartDesign::Plane COUNT 1", @@ -262,9 +262,9 @@ void Workbench::activated() )); const char* Line[] = { - "PartDesign_Point", - "PartDesign_Line", - "PartDesign_Plane", + "Part_DatumPoint", + "Part_DatumLine", + "Part_DatumPlane", nullptr}; Watcher.push_back(new Gui::TaskView::TaskWatcherCommands( "SELECT PartDesign::Line COUNT 1", @@ -274,10 +274,10 @@ void Workbench::activated() )); const char* Point[] = { - "PartDesign_Point", - "PartDesign_Line", - "PartDesign_Plane", - "PartDesign_CoordinateSystem", + "Part_DatumPoint", + "Part_DatumLine", + "Part_DatumPlane", + "Part_CoordinateSystem", nullptr}; Watcher.push_back(new Gui::TaskView::TaskWatcherCommands( "SELECT PartDesign::Point COUNT 1",