Std Refresh: Difference between revisions

From FreeCAD Documentation
No edit summary
No edit summary
Line 25: Line 25:
==Description== <!--T:3-->
==Description== <!--T:3-->


The '''Std Refresh''' command recomputes the active document. 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 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>

Revision as of 17:34, 21 March 2020

This documentation is a work in progress. Please don't mark it as translatable since it will change in the next hours and days.


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 (introduced in version 0.19).

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