I have tried to install FreeCAD (AppImage version) on my computer (Debian 10) and I have recorded a simple macro to convert a .step file to .stl
Code: Select all
import FreeCAD
import Import
import Mesh
Import.open(u"abc/part.STEP")
__objs__=[]
__objs__.append(FreeCAD.getDocument("Unnamed").getObject("Solid"))
Mesh.export(__objs__,u"abc/Parte1.stl")
del __objs__
exit()
Code: Select all
#!/bin/bash
./freecad.AppImage test.FCMacro
Now, I'd like to run FreeCAD on a Linux Server (Aruba server). I have tried to upload freecad.AppImage and the bash script to the cgi-bin directory and run the script with a .php file, but it doesn't work (of course!)
Do you have any idea how could I run it? Maybe Should I not use the AppImage version?
I thank you