|
|
| Расположение в меню |
|---|
| Правка → Обновить |
| Верстаки |
| Все |
| Быстрые клавиши |
| F5 |
| Представлено в версии |
| - |
| См. также |
| Нет |
The Std Refresh command recomputes selected objects (introduced in 26.3), or the active document if no objects are selected. The command is disabled if no recompute is required, but in that case the command can still be invoked through its shortcut.
Смотрите так же: Основы составления скриптов в FreeCAD.
Для обновления документа используйте метод recompute объекта document.
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()