Std Refresh/ja

共通・更新

メニューの場所
編集 → 更新
ワークベンチ
全て
デフォルトのショートカット
F5
導入バージョン
-
参照
なし

概要

The Std Refresh command recomputes the active document. The command is disabled if no recompute is required.

使い方

  1. There are several ways to invoke the command:
    • Press the Recompute button.
    • Select the Edit → Recompute option from the menu.
    • Use the keyboard shortcut: Ctrl+R.

オプション

補足

スクリプト処理

See also: Autogenerated API documentation and FreeCAD Scripting Basics.

To recompute a document use the recompute method of the document object:

import FreeCAD

doc = FreeCAD.ActiveDocument
doc.recompute()

The same method is available for objects in the document:

import FreeCAD

doc = FreeCAD.ActiveDocument
for obj in doc.Objects[0:3]:
    obj.recompute()

To mark an object for recomputation use the touch method of the object. The code below corresponds to forcing a recompute by selecting the document as explained in Options:

import FreeCAD

doc = FreeCAD.ActiveDocument
for obj in doc.Objects:
    obj.touch()
doc.recompute()