Skip to content

Commit

Permalink
[PD] add measure tools
Browse files Browse the repository at this point in the history
use Part's measure tools also for PartDesign
  • Loading branch information
donovaly authored and wwmayer committed Nov 13, 2020
1 parent 922815d commit a58c473
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions src/Mod/PartDesign/Gui/Workbench.cpp
Expand Up @@ -543,6 +543,18 @@ Gui::MenuItem* Workbench::setupMenuBar() const
<< "PartDesign_Sprocket"
<< "PartDesign_InvoluteGear";

// use Part's measure features also for PartDesign
Gui::MenuItem* measure = new Gui::MenuItem;
root->insertItem(item, measure);
measure->setCommand("Measure");
*measure << "Part_Measure_Linear"
<< "Part_Measure_Angular"
<< "Separator"
<< "Part_Measure_Refresh"
<< "Part_Measure_Clear_All"
<< "Part_Measure_Toggle_All"
<< "Part_Measure_Toggle_3D"
<< "Part_Measure_Toggle_Delta";

// For 0.13 a couple of python packages like numpy, matplotlib and others
// are not deployed with the installer on Windows. Thus, the WizardShaft is
Expand Down Expand Up @@ -608,6 +620,18 @@ Gui::ToolBarItem* Workbench::setupToolBars() const
<< "Separator"
<< "PartDesign_Boolean";

// use Part's measure features also for PartDesign
Gui::ToolBarItem* measure = new Gui::ToolBarItem(root);
measure->setCommand("Measure");
*measure << "Part_Measure_Linear"
<< "Part_Measure_Angular"
<< "Separator"
<< "Part_Measure_Refresh"
<< "Part_Measure_Clear_All"
<< "Part_Measure_Toggle_All"
<< "Part_Measure_Toggle_3D"
<< "Part_Measure_Toggle_Delta";

return root;
}

Expand Down

0 comments on commit a58c473

Please sign in to comment.