Zolko-123 / FreeCAD_Assembly4

Assembly 4 workbench for FreeCAD
GNU Lesser General Public License v2.1
288 stars 76 forks source link

I cannot export assembly4 'linear array' Using FreeCAD without GUI #484

Closed 3xxx closed 4 months ago

3xxx commented 7 months ago

Hi zolko! I made the model using the linear array of A4 and export the model in the python code of headless modeand only got the first part, not the arrayed part. some python code like this:

......
doc = FreeCAD.open(inputfile)
.....
ss = doc.getObject('Spreadsheet')
......
ss.set('E'+str(index+2), str(parameter[index]))
......
FreeCAD.ActiveDocument.recompute()

Import.export(__objs__, outputfile)

Does linear array not support headless mode? Thanks you!

Zolko-123 commented 7 months ago

I have never tried

3xxx commented 7 months ago

I solved it by running python code in freecadcmd, thanks you.

Zolko-123 commented 5 months ago

if it's solved, can you close the issue ?