Std Workbench: Difference between revisions

From FreeCAD Documentation
(Revising. In progress for now. Removed the 'Examples' paragraph.)
mNo edit summary
(9 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<languages/>
<languages/>
{{Page in progress}}
<translate>
<translate>

<!--T:31-->
{{Docnav
|[[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
{{GuiCommand
|Name=Std Workbench
|Name=Std Workbench
|Empty=1
|Empty=1
|MenuLocation={{StdMenu|[[Std View Menu|View]]}} → Workbench
|MenuLocation=View → Workbench
|Workbenches=All
|Workbenches=[[Workbenches|Workbenches]]
|SeeAlso=
|SeeAlso=[[Workbenches| Workbenches]], [[Interface]]
}}
}}


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


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

<!--T:29-->
This command can be launched from the '''Workbench selector''' or '''Workbench dropdown''', the sole item of the '''Workbench toolbar'''. Or it can also be activated from the menu {{MenuCommand|[[Std_View_Menu|View]] → Workbench}}.


<!--T:26-->
<!--T:26-->
[[File:FreeCAD_interface_base_divisions.svg|800px]]
[[Image:FreeCAD_interface_base_divisions.svg|800px]]
{{Caption|Workbench dropdown indicated by number 10 in the standard [[interface|interface]]}}
{{Caption|The Workbench dropdown list indicated by number 10 in the standard [[interface|interface]]}}

==Usage== <!--T:3-->

<!--T:9-->
# 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 {{incode|<none>}} (no workbench).
#* Select a workbench from the {{MenuCommand|View → Workbench}} sub-menu.


==Notes== <!--T:8-->
==Notes== <!--T:8-->


<!--T:27-->
<!--T:27-->
* Additional [[External_Workbenches|External Workbenches]] can be downloaded with the [[Image:AddonManager.svg|24px]] [[Addon_Manager|Addon Manager]].
* There are also two special options available: '''None''' (no workbench) and the [[Complete_Workbench|Complete]] Workbench {{Obsolete|0.17}}
* Additional [[External Workbenches]] can be downloaded using the [[Image:AddonManager.svg|24px]] [[Addon Manager]] and will display in this dropdown menu as well.


== Usage == <!--T:3-->
==Preferences== <!--T:32-->


<!--T:9-->
<!--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]].
Often the project starts in a workbench, for example with '''Sketch''', then continues in a different workbench, for example with '''Part''', to create objects.
You can switch from the current workbench to a new one with one of the following ways:


=== From the View menu === <!--T:10-->
==Scripting== <!--T:34-->
* In the top menu, open the {{MenuCommand|{{StdMenu|[[Std View Menu|View]]}} → Workbench}} menu and select a workbench. '''Note:''' This menu is always available, even when you have previously selected the '''Complete'''{{Obsolete|0.17}} or '''None''' workbench.


=== From the drop-down menu === <!--T:11-->
<!--T:35-->
{{Emphasis|See also:}} [[FreeCAD_Scripting_Basics|FreeCAD Scripting Basics]].
* In the toolbar, open the drop-down menu and select a workbench. '''Note:''' This menu is '''not''' available when you have previously selected the '''Complete'''{{Obsolete|0.17}} or '''None''' workbench.


=== Via Python console === <!--T:12-->
<!--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.


</translate>
<!--T:13-->
{{Code|code=
* Type the command in the Python console, for example: to invoke the Draft workbench type:
import FreeCADGui
:{{incode|Gui.activateWorkbench ("DraftWorkbench")}}


FreeCADGui.activateWorkbench("PartDesignWorkbench")
== Other references == <!--T:21-->
}}
<translate>


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


<!--T:30-->
For a general description of the workbenches, see the page [[Workbenches|Workbenches]].
</translate>
</translate>
{{Std Base navi{{#translation:}}}}
{{Std Base navi{{#translation:}}}}
{{Interface navi{{#translation:}}}}
{{Userdocnavi{{#translation:}}}}
{{Userdocnavi{{#translation:}}}}
{{Interface navi{{#translation:}}}}
{{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")