Hi, I' trying to run FC to convert some files, when I follow this steps manually headless mode seems to work but when try to load a .py file throws an error. I work on windows and (for example) when run startup.py with the above codewmayer wrote: ↑Wed Feb 24, 2021 6:07 pmCode: Select all
import FreeCADGui as Gui from pivy import coin Gui.setupWithoutGUI() doc = App.newDocument() obj = doc.addObject("Part::Box","Box") doc.recompute() view = Gui.subgraphFromObject(obj)
Code: Select all
FreeCADCmd -c startup.py
Code: Select all
Exception while processing file: startup.py [FreeCADGui already initialized]