FreeCAD_assembly3 icon indicating copy to clipboard operation
FreeCAD_assembly3 copied to clipboard

openDocument of Assembly3 document with freecadcmd results in `Aborted`

Open khimaros opened this issue 2 years ago • 1 comments

FreeCAD version: 0.20.2 A3 Version: 0.12.0

this happens even with an empty assembly: empty-assembly.FCStd.gz

i'm trying to set up CI/CD for my FreeCAD workflow. all of my parts individually can be opened and exported in headless mode using freecadcmd and a bit of python code.

however, when trying to open an Assembly3 document, freecadcmd aborts prematurely without any explanation as to why.

reproducible consistently with this bit of code:

#!/usr/bin/env freecadcmd

import sys

import FreeCAD

path, dest = sys.argv[1:]

print('### opening document', path)

FreeCAD.openDocument(path)

the output is as follows:

FreeCAD 0.20.2, Libs: 0.20.2R
(c) Juergen Riegel, Werner Mayer, Yorik van Havre and others 2001-2022
FreeCAD is free and open-source software licensed under the terms of LGPL2+ license.
FreeCAD wouldn't be possible without FreeCAD community.
  #####                 ####  ###   ####  
  #                    #      # #   #   # 
  #     ##  #### ####  #     #   #  #   # 
  ####  # # #  # #  #  #     #####  #   # 
  #     #   #### ####  #    #     # #   # 
  #     #   #    #     #    #     # #   #  ##  ##  ##
  #     #   #### ####   ### #     # ####   ##  ##  ##

### opening document cad/atom/atom-assembly.FCStd
Aborted

khimaros avatar Sep 04 '23 10:09 khimaros

there is some helpful discussion and hint provided in the referenced FreeCAD issue: https://github.com/FreeCAD/FreeCAD/issues/10526

khimaros avatar Sep 06 '23 13:09 khimaros