Closed getgray closed 1 year ago
I'm not familiar with f2d, how do I create one to test with? From a quick google, it looks like there are some possible issues exporting them but I can look
Andrew, the f2d files are the drawing files. They are linked to the original f3d files. You get to them via the Drawing environment (drop down from design). e.g.:
Thank you
Looked a bit and I don't know how to do this. Neither f2d or pdf there is an api for pdf export but can't get it to work
file: DataFile
if file.fileExtension == 'f2d':
doc = ctx.app.documents.open(file)
em: DrawingExportManager = doc.drawing.exportManager
em.execute(em.createPDFExportOptions(str(ctx.folder / 'test.pdf')))
https://help.autodesk.com/view/fusion360/ENU/?guid=GUID-A3767DDB-ECAB-431D-9C78-C44552736A0C
...
em.execute(em.createPDFExportOptions(str(ctx.folder / 'test.pdf')))
File "C:\Users/andrew/AppData/Local/Autodesk/webdeploy/production/e3fd45ba03e541f75bf8195292579861b6ebb663/Api/Python/packages\adsk\drawing.py", line 243, in execute
return _drawing.DrawingExportManager_execute(self, exportOptions)
RuntimeError: 3 : restricted
Thanks for trying. I don't even see a way to do it manually. F360 limitation.
Thanks for trying. I don't even see a way to do it manually. F360 limitation.
@getgray,
If you "View Details on Web" for the drawing, you have the option there to download a "Fusion Archive" file (as well as a DWG or PDF). The Fusion Archive will be an f3z
file that's actually a ZIP archive containing the f2d
file you want as well as the f3d
file that it references; both files will be named with what appear to be their ID hashes within the archive, not their human-readable names.
I don't know what practical options there are for using either the f2d
or f3z
files once they've been downloaded.
Currently all my drawings are being skipped. Sample log:
Can you add f2d to the export please? Those are a PITA to create, be nice to have them backed up too.