I am a newbye in the world of freecad, I am just beginning so excuse my lack of knowledge and thanks for this nice piece of software.
What I want to do is server side rendering of thumbnails (jpeg or png) of step files. As it will be server side I would rather have it headless with offscreen rendering, so using purely FreecadCmd.exe.
My first attempt with FreecadCmd was in testing this simple script, particularily (makeSnapshotWithoutGui()), which does half of the job (i.e rendering in offscreen with FreecadCmd.exe):
https://github.com/FreeCAD/FreeCAD/blob ... omation.py
Then suppressing everything but the offscreen branch, I get:
Exception while processing file: Automation.py [SoInput_setBuffer expected 3 arguments, got 2]
I searched in the forum and found this https://forum.freecadweb.org/viewtopic. ... 28#p112001
stating that this defect shall be fixed, but it seems not to be.
Then, as I am not interested in creating a cone but would rather need to load a .stp file I tried to load a .stp using
box = FreeCAD.loadFile("mypart.stp"), and I got following exception:
Exception while processing file: Automation.py [Cannot load Gui module in console application.]
So, I guess I can not do this way which would require to use FreeCad.exe rather than FreecadCmd.exe.
Do you know if what I am trying to do is possible ? Can somebody assist ?
In particular, I have no idea in passing the step geometry to coin.
Any help would be much welcomed ).
Many thanks for your support,
OS: Windows 10
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.17.13509 (Git)
Build type: Release
Python version: 2.7.14
Qt version: 4.8.7
Coin version: 4.0.0a
OCC version: 7.2.0
Locale: English/UnitedKingdom (en_GB)