ImportPreferences
 
 
 

ImportPreferences

Introduced

v4.0

Description

Imports a set of preferences from a file. The file must use the .xsipref file format, which can be created by exporting preferences. When importing preferences, all values are set local to the user and are saved in the user file.

Scripting Syntax

ImportPreferences( FileName );

Parameters

Parameter Type Description
FileName String The location of the file containing the preferences to be imported.

Examples

VBScript Example

' Here we set a preference value , export the data_management category and reimport it
SetValue "preferences.data_management.projects_new_project", 1
ExportPreferences InstallationPath(siFactoryPath) & "myDMprefs.xsipref", "data_management"
ImportPreferences InstallationPath(siFactoryPath) & "myDMprefs.xsipref"

See Also

ExportPreferences RestoreDefaultPreference Preferences.Import