GeneralPreferences Object

Derived from: Base Object
Defined in namespace "adsk::core" and the header file is <Core/Application/GeneralPreferences.h>

Description

Provides access to the general preferences.

Methods

Name Description
classType

Static function that all classes support that returns the type of the class as a string. The returned string matches the string returned by the objectType property. For example if you have a reference to an object and you want to check if it's a SketchLine you can use myObject.objectType == fusion.SketchLine.classType().

Properties

Name Description
activeUserInterfaceTheme Gets the active user interface theme. This property is only different from userInterfaceTheme in the case the theme is DeviceUserInterfaceTheme. In that case the theme used will be returned.
areasOfInterest Gets and sets the areas of interest that influence content shown on Home. The value is a bitwise combination of AreasOfInterest values.
areAutodesk360NotificationsShown Gets and sets if Autodesk 360 notifications are shown.
areInCommandErrorsAndWarningsShown Gets and sets if in command errors and warnings are shown.
areTipsAndTricksShown Gets and sets if in command tips and tricks are shown.
areTooltipsShown Gets and sets if tooltips are shown.
automateVersioningTimeInterval Gets and sets the interval, in minutes, for automatic versioning.
automaticRecoveryBackupInterval Gets and sets the automatic recovery backup interval, in minutes. Valid values are from 5 through 120.
defaultDesignType Gets and sets the default design type.
defaultModelingOrientation Gets and sets the default for which direction is considered "up".
defaultOrbit Get and sets the type of orbit.
graphicsDriver Gets and sets the graphics driver used to display the graphics. Not all of the drivers defined in the enum can be used. Use the Preferences command to check for the current valid options. The options can be different on Windows and Mac.
isAutomaticSaveOnCloseEnabled Gets and sets if the file is automatically saved on close.
isAutomaticVersioningEnabled Gets and sets if a version of the file is automatically saved using a background thread.
isCameraPivotEnabled Gets and sets if zoom and orbit commands use camera pivot point for transition.
isCommandPromptShown Gets and sets if the command prompt is shown.
isCreateNewShortcutsWhenUpdatingFusionEnabled Gets and sets whether desktop, taskbar, or dock shortcuts are replaced and recreated when Fusion is updated.
isDefaultMeasureShown Gets and sets if the default measure is shown.
isGestureBasedViewNavigationUsed Gets and sets if gesture based view navigation is used.
isHangDetectionEnabled Gets and sets whether hang detection is enabled. This is a Windows only setting. If True, Fusion will detect when a task processes for longer than a specific time. A dialog is displayed if a hang is detected, allowing the user to continue processing or stop Fusion and send an error report.
isNewDocumentTabCreatesDefaultDesign Gets and sets whether clicking the new document tab (+) creates a document using the default design type instead of opening the new document dialog.
isShowRecoverDocumentsOnStartup Gets and sets whether to show the Recover Documents dialog on startup when recovered design data is available.
isSkipCreationWhenLiveUpdate Gets and sets if the creation of launch items should be skipped for live update.
isSpacebarRepeatsLastCommandEnabled Gets and sets whether the Spacebar key repeats the last command.
isValid Indicates if this object is still valid, i.e. hasn't been deleted or some other action done to invalidate the reference.
isWindowsTouchpadUsedForGestures Gets and sets whether Windows touchpad gestures are used for view navigation. This is a Windows only setting.
isZoomDirectionReversed Gets and sets if the direction of the zoom is reversed.
objectType This property is supported by all objects in the API and returns a string that contains the full name (namespace::objecttype) describing the type of the object.

It's often useful to use this in combination with the classType method to see if an object is a certain type. For example: if obj.objectType == adsk.core.Point3D.classType():
offlineCachePeriod Gets and sets the length of time, in days, that the offline cache of a document will remain.
panZoomOrbitShortcuts Gets and sets how pan, zoom, and orbit should behave.
selectionBarHideBehavior Gets and sets the hide behavior used by the Selection Bar.
startupExperience Gets and sets the start-up experience, which controls whether Fusion opens to Home or opens a new design using the default document type.
userInterfaceTheme Gets and sets which color theme is used by the user interface.
userLanguage Gets and sets the current language. Setting the language does not take effect until the next time Fusion is started.
viewCubeSize Gets and sets the ViewCube size.

Accessed From

Preferences.generalPreferences

Version

Introduced in version August 2014