Macro ForceRecompute: Difference between revisions
(Created page with "<translate> <!--T:1--> {{Macro|Icon=Force_Recompute|Name=Macro Force Recompute|Description=Forces manual recompute of model|Author=shoogen}} <!--T:2--> Sometimes the user app...") |
m (add "View-refresh.svg") |
||
Line 6: | Line 6: | ||
Sometimes the user applies changes to the model in FreeCAD. |
Sometimes the user applies changes to the model in FreeCAD. |
||
But FreeCAD does not seem to recognize them. |
But FreeCAD does not seem to recognize them. |
||
So the blue "Recompute" icon stayes greyed out. |
So the blue "Recompute" icon [[File:View-refresh.svg|16px]] stayes greyed out. |
||
This small macro forces a manual recompute of the model. |
This small macro forces a manual recompute of the model. |
||
Revision as of 08:41, 2 September 2014
File:Force Recompute Macro Force Recompute |
Description |
---|
Forces manual recompute of model Author: shoogen |
Author |
shoogen |
Download |
None |
Links |
Macros recipes How to install macros How to customize toolbars |
Macro Version |
1.0 |
Date last modified |
None |
FreeCAD Version(s) |
None |
Default shortcut |
None |
See also |
None |
Sometimes the user applies changes to the model in FreeCAD. But FreeCAD does not seem to recognize them. So the blue "Recompute" icon stayes greyed out. This small macro forces a manual recompute of the model.
Use
Just run the macro when needed.
Script
Macro Force_Recompute.py
# -*- coding: utf-8 -*-
# Force Recompute
# macro provided by shoogen
import FreeCAD
for obj in FreeCAD.ActiveDocument.Objects:
obj.touch()
FreeCAD.ActiveDocument.recompute()