Std Workbench/ro: Difference between revisions

From FreeCAD Documentation
(Updating to match new version of source page)
(Updating to match new version of source page)
Line 11: Line 11:
This command is used to activate the graphical user interface (GUI) and the tools of a specific workbench.
This command is used to activate the graphical user interface (GUI) and the tools of a specific workbench.


There are also two special options available: '''None''' (no workbench) and '''Complete''' {{Obsolete|0.17}}
It is possible to execute it in three different ways:
* the '''View''' menu,
* the drop-down menu, or,
* a Python command.

There are also two special options available: '''None''' (no workbench) and '''Complete'''[deprecated].


<div class="mw-translate-fuzzy">
<div class="mw-translate-fuzzy">
Line 33: Line 28:
=== Via Python console ===
=== Via Python console ===


* Type the command in the console, for example: '''Gui.activateWorkbench ("DraftWorkbench")''' start the workbench '''Draft'''. Always possible.
* Type the command in the Python console, for example: to invoke the Draft workbench type:
{{incode|Gui.activateWorkbench ("DraftWorkbench")}}


== Examples ==
== Examples ==


[[Image: WorkbenchStd1.png]]
Start from the drop-down menu:


{{Caption|Using the the Workbench drop-down menu}}
[[Image: WorkbenchStd1.png|left]]
{{Clear}}
{{Clear}}


[[Image: WorkbenchStd2.png]]
Starting from the Python console:


{{Caption|Invoking a different workbench using the Python console}}
[[Image: WorkbenchStd2.png|left]]
{{Clear}}
{{Clear}}


[[Image: WorkbenchStd3.png]]
Through the console the command can also be copied:


{{Caption|'''Tip:''' If the Python console is open you will see that FreeCAD records the actions it executes in python code. Theoretically, the user can change something in the interface and see the comparable python code generated. This is a very useful way to learn python, FreeCAD, and how to automate redundant tasks (see [[Macros]] for more details).}}
[[Image: WorkbenchStd3.png|left]]
{{Clear}}
{{Clear}}


Line 56: Line 53:


{{Std Base}}
{{Std Base}}

{{Userdocnavi}}
{{Userdocnavi}}

{{clear}}
{{clear}}

Revision as of 20:01, 6 February 2020

This documentation is not finished. Please help and contribute documentation.

GuiCommand model explains how commands should be documented. Browse Category:UnfinishedDocu to see more incomplete pages like this one. See Category:Command Reference for all commands.

See WikiPages to learn about editing the wiki pages, and go to Help FreeCAD to learn about other ways in which you can contribute.

Std Workbench

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

Description

This command is used to activate the graphical user interface (GUI) and the tools of a specific workbench.

There are also two special options available: None (no workbench) and Complete obsolete in version 0.17

ToDo.

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

  • In the top menu, open the ViewWorkbench 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

  • 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

  • Type the command in the Python console, for example: to invoke the Draft workbench type:

Gui.activateWorkbench ("DraftWorkbench")

Examples

Using the the Workbench drop-down menu

Invoking a different workbench using the Python console

Tip: If the Python console is open you will see that FreeCAD records the actions it executes in python code. Theoretically, the user can change something in the interface and see the comparable python code generated. This is a very useful way to learn python, FreeCAD, and how to automate redundant tasks (see Macros for more details).

Other references

For a general description of the workbenches, see the page Workbenches.