Std Refresh: Difference between revisions

From FreeCAD Documentation
({{Std Base navi}} to categorize page)
mNo edit summary
Line 24: Line 24:
When used, this command recomputes all altered components on the screen and refreshes the display.
When used, this command recomputes all altered components on the screen and refreshes the display.


== How to use == <!--T:5-->
== Usage == <!--T:5-->


<!--T:7-->
<!--T:7-->
# There are several ways to invoke the Refresh command:
Press {{KEY|F5}} or {{KEY|Ctrl}}+{{KEY|R}} or click on the icon {{Button|[[File:Std_Refresh.svg|16px]] [[Std_Refresh|Refresh]]}}.
#* Pressing the {{KEY|F5}} keyboard shortcut
#* Pressing the {{KEY|Ctrl}}+{{KEY|R}} keyboard shortcut
#* Pressing on the {{Button|[[Image:Std_Refresh.svg|16px]] [[Std_Refresh|Refresh]]}} button in the toolbar
#* Using the {{MenuCommand|{{StdMenu|[[Std Edit Menu|Edit]]}} → Refresh}} entry from the top menu


== Limitations == <!--T:6-->
== Limitations == <!--T:6-->

Revision as of 11:46, 7 February 2020

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