Std Refresh: Difference between revisions

From FreeCAD Documentation
No edit summary
(Removed a reference to V0.19.)
 
(15 intermediate revisions by 6 users not shown)
Line 1: Line 1:
<languages/>
<languages/>

{{Page in progress}}

<translate>
<translate>


<!--T:9-->
<!--T:9-->
{{Docnav
{{Docnav
|[[Std_DuplicateSelection|Std DuplicateSelection]]
|[[Std_DuplicateSelection|DuplicateSelection]]
|[[Std_BoxSelection|Std BoxSelection]]
|[[Std_BoxSelection|BoxSelection]]
|[[Std_Edit_Menu|Std Edit Menu]]
|[[Std_Edit_Menu|Std Edit Menu]]
|IconL=
|IconL=Std_DuplicateSelection.svg
|IconR=Std_BoxSelection.svg
|IconR=Std_BoxSelection.svg
|IconC=Freecad.svg
|IconC=Freecad.svg
Line 25: Line 22:
==Description== <!--T:3-->
==Description== <!--T:3-->


<!--T:14-->
The '''Std Refresh''' command recomputes modified objects in the model and refreshes the [[3D_view|3D view]]. The command is disabled if the model does not require a recompute.
The '''Std Refresh''' command recomputes the active document. The command is disabled if the document does not require a recompute.


==Usage== <!--T:5-->
==Usage== <!--T:5-->
Line 35: Line 33:
#* Use the keyboard shortcut: {{KEY|F5}}.
#* Use the keyboard shortcut: {{KEY|F5}}.


==Options==
==Options== <!--T:15-->


<!--T:16-->
* To force a recompute select the document or one or more objects in the [[Tree_view|Tree view]], choose the {{MenuCommand|Mark to recompute}} option from the context menu, and invoke the command.
* For objects, but not for documents, you can also choose {{MenuCommand|Recompute object}} from the same context menu ({{Version|0.19}}).
* To force a recompute select the document or one or more objects in the [[Tree_view|Tree view]], choose the {{MenuCommand|[[Image:Std_MarkToRecompute.svg|16px]] Mark to recompute}} option from the context menu, and invoke the command.
* For objects, but not for documents, you can also choose {{MenuCommand|Recompute object}} from the same context menu.


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


<!--T:18-->
* For a macro that will recompute the whole document see: [[Macro_ForceRecompute|Macro ForceRecompute]].
* For a macro that will recompute the active document see: [[Macro_ForceRecompute|Macro ForceRecompute]].


==Scripting== <!--T:10-->
==Scripting== <!--T:10-->
Line 50: Line 50:


<!--T:12-->
<!--T:12-->
To recompute the model use the {{incode|recompute}} method of the document object.
To recompute a document use the {{incode|recompute}} method of the document object.


</translate>
</translate>
Line 63: Line 63:
<!--T:13-->
<!--T:13-->
{{Docnav
{{Docnav
|[[Std_DuplicateSelection|Std DuplicateSelection]]
|[[Std_DuplicateSelection|DuplicateSelection]]
|[[Std_BoxSelection|Std BoxSelection]]
|[[Std_BoxSelection|BoxSelection]]
|[[Std_Edit_Menu|Std Edit Menu]]
|[[Std_Edit_Menu|Std Edit Menu]]
|IconL=
|IconL=Std_DuplicateSelection.svg
|IconR=Std_BoxSelection.svg
|IconR=Std_BoxSelection.svg
|IconC=Freecad.svg
|IconC=Freecad.svg

Latest revision as of 15:39, 20 May 2023

Std Refresh

Menu location
Edit → Refresh
Workbenches
All
Default shortcut
F5
Introduced in version
-
See also
None

Description

The Std Refresh command recomputes the active document. The command is disabled if the document does not require a recompute.

Usage

  1. There are several ways to invoke the command:
    • Press the Std Refresh button.
    • Select the Edit → Refresh option from the menu.
    • Use the keyboard shortcut: F5.

Options

  • To force a recompute select the document or one or more objects in the Tree view, choose the Mark to recompute option from the context menu, and invoke the command.
  • For objects, but not for documents, you can also choose Recompute object from the same context menu.

Notes

Scripting

See also: FreeCAD Scripting Basics.

To recompute a document use the recompute method of the document object.

import FreeCAD

doc = FreeCAD.newDocument()
doc.recompute()