- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
If you try the following code it doesn't change the setting in preferences:
app = adsk.core.Application.get()
ui = app.userInterface
genPref = app.preferences.generalPreferences
autosave = genPref.isAutomaticSaveOnCloseEnabled
autoVersion = genPref.isAutomaticVersioningEnabled
print("Autosave before: " + str(autosave))
print("autoVersion before: " + str(autoVersion))
if autosave:
autosave = False
print("Autosave: " + str(autosave))
print("autoVersion: " + str(autoVersion))
You can see from the result in the debug console that the value has changed so far as the API is concerned. But when you check the UI, the setting is still ON... and running the code again reports autosave is True.
If I turn off the setting manually, then autosave evaluates to False immediately.
It appears there are a decent number of bugs in the API and a few misleading notes in the documentation indicating things should work when in fact they aren't supported. Who is responsible for logging bugs and how many API bug fixes are pushed out with each new release of Fusion?
Scott Moyse
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.
RevOps Strategy Manager at Toolpath. New Zealand based.
Co-founder of the Grumpy Sloth full aluminium billet mechanical keyboard project
Solved! Go to Solution.