Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rescue / Catch exceptions and continue Exporting #39

Open
Rudis1261 opened this issue Oct 20, 2021 · 0 comments
Open

Rescue / Catch exceptions and continue Exporting #39

Rudis1261 opened this issue Oct 20, 2021 · 0 comments

Comments

@Rudis1261
Copy link

Rudis1261 commented Oct 20, 2021

Would it be possible to catch/rescue the exception, and continue exporting other files? I have 420 designs to export, and it's crashing on design 20/420.

I am keen to just have it skip this failing design and log it for later. So I can manually export any which failed. For example, the one failing is a Voron2.2 assembly file which is pretty dang complex, and to be fair I can just download the CAD again.

But now that my license has expired. I can't even delete just that one design from the interface to be able to make it continue exporting.

Traceback for reference:

Failed:
Traceback (most recent call last):
  File "C:/Users/Rudi/Downloads/fusion-360-total-exporter-master/Fusion 360 Total Export.py", line 325, in run
    total_export.run(context)
  File "C:/Users/Rudi/Downloads/fusion-360-total-exporter-master/Fusion 360 Total Export.py", line 50, in run
    self._export_data(output_path)
  File "C:/Users/Rudi/Downloads/fusion-360-total-exporter-master/Fusion 360 Total Export.py", line 105, in _export_data
    self._write_data_file(output_path, file)
  File "C:/Users/Rudi/Downloads/fusion-360-total-exporter-master/Fusion 360 Total Export.py", line 184, in _write_data_file
    self._write_component(file_folder_path, design.rootComponent)
  File "C:/Users/Rudi/Downloads/fusion-360-total-exporter-master/Fusion 360 Total Export.py", line 220, in _write_component
    self._write_component(sub_path, sub_component)
  File "C:/Users/Rudi/Downloads/fusion-360-total-exporter-master/Fusion 360 Total Export.py", line 220, in _write_component
    self._write_component(sub_path, sub_component)
  File "C:/Users/Rudi/Downloads/fusion-360-total-exporter-master/Fusion 360 Total Export.py", line 220, in _write_component
    self._write_component(sub_path, sub_component)
  [Previous line repeated 2 more times]
  File "C:/Users/Rudi/Downloads/fusion-360-total-exporter-master/Fusion 360 Total Export.py", line 206, in _write_component
    self._write_step(output_path, component)
  File "C:/Users/Rudi/Downloads/fusion-360-total-exporter-master/Fusion 360 Total Export.py", line 231, in _write_step
    options = export_manager.createSTEPExportOptions(output_path, component)
  File "C:/Users/Rudi/AppData/Local/Autodesk/webdeploy/production/62080619ef0c88ebbe32d9c0b5fea9f374fca035/Api/Python/packages\adsk\fusion.py", line 16837, in createSTEPExportOptions
    return _fusion.ExportManager_createSTEPExportOptions(self, *args)
RuntimeError: 3 : The selected folder is not accessible.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant