shaise / FreeCAD_SheetMetal

A simple sheet metal workbench for FreeCAD
http://theseger.com/projects/2015/06/sheet-metal-addon-for-freecad/
GNU Lesser General Public License v2.1
199 stars 57 forks source link

[Feature] Using SheetMetal with FreeCAD without GUI (only CLI AKA 'headless') #227

Open gabrielgriesser opened 2 years ago

gabrielgriesser commented 2 years ago

Hello,

Is it possible to use the SheetMetal module in a python3 script which uses only FreeCAD cli commands ?

In fact, I would like to use the SheetMetalUnfolder function, but it seems FreeCADGUI has to be imported.

Can I unfold some shape without using GUI ?

Thank you in advance :)

shaise commented 2 years ago

the sheet metal unfolder is an external macro that was integrated into sheetmetal workbench. It uses freecadgui. So, without code changes I don't think it is possible.

gabrielgriesser commented 2 years ago

Okay thank you for the quick answer ! :) So I should be able to use FreeCAD SheetMetal in a Dockerized FreeCAD with GUI container ? (for ex. https://github.com/ToddG/freecad-builder or https://gitlab.com/daviddaish/freecad_docker_env).

shaise commented 2 years ago

Not familiar with that, so I really cant say.

luzpaz commented 2 years ago

@gabrielgriesser feel free to post on the freecad forum. There is an interest in running FreeCAD in 'headless' mode and this could make a nice usecase.

Edit: don't forget to x-post the ticket to the thread and vice versa.

luzpaz commented 2 years ago

?

gabrielgriesser commented 2 years ago

Sorry, here is the thread on the freecad forum ! https://forum.freecadweb.org/viewtopic.php?f=9&t=68323

zuchtzucht commented 1 year ago

Any update on this ?