Code: Select all
import FreeCAD as App
import FreeCADGui as Gui
Gui.showMainWindow()
# Do something
Gui.exec_loop()
Code: Select all
import FreeCAD as App
import FreeCADGui as Gui
Gui.showMainWindow()
# Do something
Gui.exec_loop()
yes, why would any other python session have full access to the fc session...pedrovbeltran wrote: ↑Mon Jan 23, 2023 8:43 am The only way this works properly is if I execute this script through FreeCADCmd
Obviously the Gui is not responding as simply importing FreeCADGui is not like executing FreeCAD so there is no mainwindow to show if you haven't started it.pedrovbeltran wrote: ↑Mon Jan 23, 2023 8:43 am ...
this works properly is if I execute this script through FreeCADCmd, but I'd like this script to be independent.