Std Refresh

From FreeCAD Documentation
(Redirected from Recompute)
Jump to: navigation, search
Other languages:
Deutsch • ‎English • ‎français • ‎italiano • ‎русский

Std Refresh.svg 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.

Usage

  1. There are several ways to invoke the Refresh command:
    • Pressing the F5 keyboard shortcut
    • Pressing the Ctrl+R keyboard shortcut
    • Pressing on the Std Refresh.svg Refresh button in the toolbar
    • Using the Edit → Refresh entry from the top menu

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()