Std Refresh: Difference between revisions

From FreeCAD Documentation
m ({{Docnav)
(from the Python console)
Line 40: Line 40:


<!--T:12-->
<!--T:12-->
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 console|Python console]] by using the {{incode|recompute}} method of the currently active document.


</translate>
</translate>

Revision as of 16:32, 27 December 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()