I'm trying to use FreeCAD as a *.brep viewer that automatically re-imports a brep file when it sees the file has changed. However it seems that because the Python console also runs FreeCAD I can't have any infinite loops or else the entire UI hangs.
For example:
Code: Select all
import time
time.sleep(1)
In order to monitor the file I had something that ends up being similar to this
Code: Select all
import time
while True:
#check file and run some FreeCAD commands if required
time.sleep(1)
I understand why, I'm just not sure how (if possible) to create something that can run an infinite loop without freezing the UI.
Thanks in advance for any help!
Dominique,