Announcements
Autodesk Community will be read-only between April 26 and April 27 as we complete essential maintenance. We will remove this banner once completed. Thanks for your understanding

Ican't save current image as file

Anonymous
321 Views
1 Reply
Message 1 of 2

Ican't save current image as file

Anonymous
Not applicable

Hi, I can't save current image as file. I used Viewport.SaveImageAsFile method and it returned True and I don't receive any error , but I can't get file. What's wrong on my code? I'm newbie at fusion360 api, please let me know any resolution.  Below is my code

Screen Shot 2019-02-21 at 11.49.30.png

and output is " /Users/otz/3dcad/frame01 True"

 

0 Likes
322 Views
1 Reply
Reply (1)
Message 2 of 2

BrianEkins
Mentor
Mentor

I thought at first the problem was because you left off the file extension on the filename but I wrote a little test with a good filename and am seeing the same problem.  I know this was working a few months ago so it is a regression in behavior.  I reported it on the support forum: https://forums.autodesk.com/t5/fusion-360-support/regression-in-saving-view-as-image-file-using-api-...

 

It works correctly on Windows and is a Mac only problem.

 

---------------------------------------------------------------
Brian Ekins
Inventor and Fusion 360 API Expert
Website/Blog: https://EkinsSolutions.com
0 Likes