Part: Add Sketcher_NewSketch to Part toolbar #14318
Conversation
|
If Part is the default workbench the change will cause this error message:
|
Is there an easy way to avoid this? It was based on the PR where Part CheckGeometry was added to PartDesign toolbar and menu so I didn't expect such issues. |
There it works because PartDesignGui depends on PartGui. And because SketcherGui depends on PartGui too it's not possible to make PartGui depend on SketcherGui. |
Ok. And there's no way to fix it with some small workaround? Maybe it should be implemented differently - by adding a default custom toolbar with this button to Part wb. Like what you can do manually via Tools --> Customize --> Toolbars. Could it work this way? |
|
You can do that in the InitGui.py file of the Part module: |
|
@wwmayer Thank you. It works with this change so I updated the PR. But the Create Sketch button landed at the end of the toolbar for some reason. Previously, it was the first button before Extrude (I positioned it this way in the Workbench.cpp file). |
|
For me with the modified InitGui.py the sketcher icon is left from the extrude icon. |
* Update Workbench.cpp * Part: Update InitGui.py
fixes #14190
adds Sketcher_NewSketch to the Part menu and toolbar (right before Extrude)