Std Workbench: Difference between revisions

From FreeCAD Documentation
(Marked this version for translation)
mNo edit summary
(40 intermediate revisions by 5 users not shown)
Line 2: Line 2:
<translate>
<translate>


<!--T:1-->
<!--T:31-->
{{Docnav
{{Template:UnfinishedDocu}}
|[[Std_RandomColor|RandomColor]]
|[[Std_TreeSyncView|TreeSyncView]]
|[[Std_View_Menu|Std View Menu]]
|IconL=Std_RandomColor.svg
|IconR=Std_TreeSyncView.svg
|IconC=Freecad.svg
}}


<!--T:2-->
<!--T:2-->
<!--Empty=1 to suppress icon-->
{{GuiCommand|Name=Std Workbench|MenuLocation=[[Std View Menu|View]] → Workbench|Workbenches=All|Shortcut=...|SeeAlso=...}}
{{GuiCommand
|Name=Std Workbench
|Empty=1
|MenuLocation=View → Workbench
|Workbenches=[[Workbenches|Workbenches]]
|SeeAlso=
}}


== Description == <!--T:5-->
==Description== <!--T:5-->


<!--T:6-->
<!--T:6-->
This command is used to activate the graphical user interface (GUI) and the tools of a specific workbench.
The '''Std Workbench''' command activates a selected [[Workbenches|workbench]] including its graphical user interface (GUI).


<!--T:7-->
<!--T:26-->
[[Image:FreeCAD_interface_base_divisions.svg|800px]]
It is possible to execute it in three different ways:
{{Caption|The Workbench dropdown list indicated by number 10 in the standard [[interface|interface]]}}
* the '''View''' menu,
* the drop-down menu, or,
* a Python command.


<!--T:8-->
==Usage== <!--T:3-->
There are also two special options available: '''None''' (no workbench) and '''Complete'''[deprecated].

== How to use == <!--T:3-->


<!--T:9-->
<!--T:9-->
# There are several ways to invoke the command:
Often the project starts in a workbench, for example with '''Sketch''', then continues in a different workbench, for example with '''Part''', to create objects.
#* Select a workbench from the '''Workbench dropdown list''' in the Workbench toolbar. This option is not available if the current workbench is {{incode|<none>}} (no workbench).
You can switch from the current workbench to a new one with one of the following ways:
#* Select a workbench from the {{MenuCommand|View → Workbench}} sub-menu.


=== From the View menu === <!--T:10-->
==Notes== <!--T:8-->
* In the top menu, open the {{Button|'''View'''}} → {{Button|'''Workbench'''}} menu and select a workbench. This menu is always available, even when you have previously selected the '''Complete''' or '''None''' workbench.


=== From the drop-down menu === <!--T:11-->
<!--T:27-->
* Additional [[External_Workbenches|External Workbenches]] can be downloaded with the [[Image:AddonManager.svg|24px]] [[Addon_Manager|Addon Manager]].
* In the top menu, open the drop-down menu and select a workbench. This menu is not available when you have previously selected the '''Complete''' or '''None''' workbench.


=== Via Python console === <!--T:12-->
==Preferences== <!--T:32-->


<!--T:13-->
<!--T:33-->
* The start up workbench can be changed in the preferences: {{MenuCommand|Edit → Preferences... → General → General → Start up}}. See [[Preferences_Editor#General|Preferences Editor]].
* Type the command in the console, for example: '''Gui.activateWorkbench ("DraftWorkbench")''' start the workbench '''Draft'''. Always possible.


== Examples == <!--T:14-->
==Scripting== <!--T:34-->


<!--T:15-->
<!--T:35-->
{{Emphasis|See also:}} [[FreeCAD_Scripting_Basics|FreeCAD Scripting Basics]].
Start from the drop-down menu:


<!--T:16-->
<!--T:36-->
To change the worbench use the {{incode|activateWorkbench}} method of the FreeCADGui module. This method is not available if FreeCAD is in console mode.
[[Image: WorkbenchStd1.png|left]]
{{Clear}}


</translate>
<!--T:17-->
{{Code|code=
Starting from the Python console:
import FreeCADGui

<!--T:18-->
[[Image: WorkbenchStd2.png|left]]
{{Clear}}

<!--T:19-->
Through the console the command can also be copied:

<!--T:20-->
[[Image: WorkbenchStd3.png|left]]
{{Clear}}


FreeCADGui.activateWorkbench("PartDesignWorkbench")
== Other references == <!--T:21-->
}}
For a general description of the workbenches, see the page [[Workbenches| Workbenches]].
<translate>


<!--T:22-->
To learn more about each workbench, consult the respective presentation pages.
* [[Image: Arch.png | 16px]] [[Arch Module|Arch Workbench]]
* [[Image: Workbench_Assembly.png | 16px]] [[Assembly_project|Assembly project]]
* [[Image: Workbench_Complete.svg | 16px]] [[Complete Workbench|Complete]] (deprecated)
* [[Image: Workbench_Draft.png | 16px]] [[Draft Module|Draft Workbench]]
* [[Image: Workbench_Drawing.png | 16px]] [[Drawing Module|Drawing Workbench]] (transition to [[TechDraw Module|TechDraw Workbench]] in v0.17)
* [[Image:Workbench_FEM.svg|16px]] [[FEM_project|FEM Workbench]]
* [[Image: Workbench_Image.png | 16px]] [[Image Module|Image Workbench]]
* [[Image:Workbench_Inspection.svg|16px]] [[Inspection Workbench|Inspection Workbench]]
* [[Image: Workbench_Mesh.png | 16px]] [[Mesh Module|Mesh Workbench]]
* [[File:Freecad16.svg|16px]] <none>
* [[Image: Workbench_OpenSCAD.png | 16px]] [[OpenSCAD_Module|OpenSCAD Workbench]]
* [[Image: Workbench_Part.png | 16px]] [[Part Module|Part Workbench]]
* [[Image:Workbench_Path.svg|16px]] [[Path_Workbench|Path Workbench]]
* [[Image: Workbench_PartDesign.png | 16px]] [[PartDesign Workbench|PartDesign Workbench]]
* [[Image: Plot_Save.png | 16px]] [[Plot_Module|Plot Workbench]]
* [[File:Workbench_Points.svg|16px]] [[Points_Module|Points Workbench]]
* [[Image: Workbench_Raytracing.png | 16px]] [[Raytracing Module|Raytracing Workbench]]
* [[Image:Workbench_Reverse_Engineering.svg|16px]][[Reverse Engineering Workbench|Reverse Engineering Workbench]]
* [[Image: Workbench_Robot.png | 16px]] [[Robot Module|Robot Workbench]]
* [[Image: FreeCAD-Ship-Ico.png | 16px]] [[FreeCADShip_Workbench|Ship Workbench]]
* [[Image: Workbench_Sketcher.png | 16px]] [[Sketcher Workbench|Sketcher Workbench]]
* [[File:Workbench_Spreadsheet.svg|16px]] [[Spreadsheet Workbench|Spreadsheet]]
* [[Image: Workbench_Start.svg | 16px]] [[Start Workbench|Start Workbench]]
* [[File:Workbench_TechDraw.svg|16px]] [[TechDraw Module|TechDraw Workbench]]
* [[File:Workbench Test.svg|16px]] [[Testing|Testing Workbench]]
* [[File:Workbench Web.svg|16px]] [[Web Workbench|Web Workbench]]


<!--T:23-->
<!--T:37-->
{{Docnav
[[Category:User Documentation]]
|[[Std_RandomColor|RandomColor]]
|[[Std_TreeSyncView|TreeSyncView]]
|[[Std_View_Menu|Std View Menu]]
|IconL=Std_RandomColor.svg
|IconR=Std_TreeSyncView.svg
|IconC=Freecad.svg
}}


<!--T:24-->
[[Category:Command Reference]]
</translate>
</translate>
{{Std Base navi{{#translation:}}}}
{{Userdocnavi{{#translation:}}}}
{{Interface navi{{#translation:}}}}
{{clear}}
{{clear}}

Revision as of 14:57, 6 January 2021

Std Workbench

Menu location
View → Workbench
Workbenches
Workbenches
Default shortcut
None
Introduced in version
-
See also
None

Description

The Std Workbench command activates a selected workbench including its graphical user interface (GUI).

The Workbench dropdown list indicated by number 10 in the standard interface

Usage

  1. There are several ways to invoke the command:
    • Select a workbench from the Workbench dropdown list in the Workbench toolbar. This option is not available if the current workbench is <none> (no workbench).
    • Select a workbench from the View → Workbench sub-menu.

Notes

Preferences

  • The start up workbench can be changed in the preferences: Edit → Preferences... → General → General → Start up. See Preferences Editor.

Scripting

See also: FreeCAD Scripting Basics.

To change the worbench use the activateWorkbench method of the FreeCADGui module. This method is not available if FreeCAD is in console mode.

import FreeCADGui

FreeCADGui.activateWorkbench("PartDesignWorkbench")