Std Refresh: Difference between revisions

From FreeCAD Documentation
(Recomputing the model can be done in macros and from the Python console by using the recompute method of the currently active document.)
m (Docnav)
Line 1: Line 1:
<languages/>
<languages/>
<translate>
<translate>

{{Docnav
|
|[[Std_Redo|Redo]]
|[[Std_Edit_Menu|Std Edit Menu]]
|IconL=
|IconC=Freecad.svg
|IconR=Std_Redo.svg
}}

<!--T:2-->
<!--T:2-->
{{GuiCommand
{{GuiCommand
Line 28: Line 38:


Recomputing the model can be done in [[macros|macros]] and from the [[Python|Python]] console by using the {{incode|recompute}} method of the currently active document.
Recomputing the model can be done in [[macros|macros]] and from the [[Python|Python]] console by using the {{incode|recompute}} method of the currently active document.

</translate>
</translate>
{{Code|code=
{{Code|code=
Line 37: Line 48:
}}
}}
<translate>
<translate>

{{Docnav
|
|[[Std_Redo|Redo]]
|[[Std_Edit_Menu|Std Edit Menu]]
|IconL=
|IconC=Freecad.svg
|IconR=Std_Redo.svg
}}


<!--T:8-->
<!--T:8-->

Revision as of 09:52, 15 November 2019

Std Refresh

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


Description

When used, this command recomputes all altered components on the screen and refreshes the display.

How to use

Press F5 or Ctrl+R or click on the icon Refresh.

Limitations

FreeCAD will only allow Refresh when (according to the program's opinion) an alteration of a component happened. Then the grayed-out Refresh-Icon will become blue. To force a manual recompute you could use the macro Force Recompute

Scripting

See also: FreeCAD Scripting Basics.

Recomputing the model can be done in macros and from the Python console by using the recompute method of the currently active document.

import FreeCAD as App

doc = App.newDocument()
doc.recompute()
# App.ActiveDocument.recompute()