Fusion360Exporter icon indicating copy to clipboard operation
Fusion360Exporter copied to clipboard

Drawings are not getting exported

Open SaiChamakura opened this issue 5 months ago • 1 comments

actually i have few models files

Image

and the drawings of them in my hub , the models are getting exported but the drawing are not . I have ticked the export to dxf option only , then its saying the drawing are getting skipped if i turn on export non-design files as well then its showing error.

SaiChamakura avatar Jul 23 '25 20:07 SaiChamakura

What's the error? If you want the drawings like "102_final_model Drawing" to get downloaded, I think the "Export Non-design files" option is what you need

aconz2 avatar Jul 24 '25 15:07 aconz2

Sorry to hop on such an old thread, but since the OP didn't give any context on the error. My logs show:

{
  "folder": "~\\Desktop\\Fusion360Export",
  "formats": [
    "f3d",
    "step"
  ],
  "projects_folders": {
    "a.#": []
  },
  "unhide_all": true,
  "save_sketches": true,
  "num_versions": 0,
  "export_non_design_files": true
}

Some other stuff about successful files and then:

Visiting file filename.f2d
file filename has extension f2d attempting direct download
Traceback (most recent call last):
  File "~/Downloads/Fusion360Exporter-main/Fusion360Exporter-main/Exporter.py", line 319, in visit_file
    file.download(str(output_path), None)  # Synchronous download
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "~/AppData/Local/Autodesk/webdeploy/production/#/Api/Python/packages\adsk\core.py", line 9182, in download
    return _core.DataFile_download(self, path, handler)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
RuntimeError: 3 : file type not available for download

I replaced the personal info with filename, #, and ~ for the home directory, but that should still be legible. Seems to choke on .f2d files. In the documentation you specifically state that it only supports .f3d or exporting 'non-design files' and .f2d is not in that list, so this seems like expected behavior.

When an f2d file is open the regular dropdown for export is greyed out and instead an icon is added for export on the main Drawing bar (see attached).

Image Image

robertkuyper avatar Dec 11 '25 23:12 robertkuyper

Interesting, thanks for posting the error. So then maybe f2d can be exported to PDF by opening the drawing and using the exportManager docs similar to how it is for f3d (see here).

aconz2 avatar Dec 12 '25 18:12 aconz2

I mentioned in issue #33, but I will try to create a separate PR for both #31 and #33 this weekend. I think both can be resolved with minimal work, just adding a case to catch the .f2d and adding a checkbox for using the integrated file manager to choose the current folder for export. My background is mechanical engineering not a CS field, so I would appreciate some guidance if I make any mistakes. Would your preference be PRs against the dev branch?

As an aside, I really appreciate your work here, there is no way I would have been able to write a script this well, so having a starting place to make some modifications is invaluable. I have read most of the API documentation, but it is hard for my mind to interpret without a working script like this to simply modify a bit.

You didn't comment on #33 so it is probably worth asking if this or #33 are actually added functionality you would want to see in your script or if I should leave it in the fork. The small company I work for wants to use it for a specific use case and that is why I am spending some time on it, but I don't want to hijack this project if you feel the additions are not in line with what you were trying to achieve.

robertkuyper avatar Dec 14 '25 05:12 robertkuyper

You are very welcome, glad it is useful.

PRs against the main branch, dev branch is a semi-rewrite that I never published

f2d support is a definite yes, current folder is a likely yes (commented on #33 to make sure I understand)

aconz2 avatar Dec 15 '25 22:12 aconz2