ExportPreferences

Introduced

4.0

Description

Exports a category of preferences into a file. A category is a set of preferences on the same subject grouped together in a node under the Preferences object located under Application.

Scripting Syntax

ExportPreferences( FileName, [Categories] )

Parameters

Parameter

Type

Description

FileName [in/out]

String

The filename where the exported preferences will be saved.

Categories

String

The categories to export. It can be one or more categories separated by commas. If this parameter is empty then all categories are exported. The categories can be found under the Preferences node.

Default Value: none

Examples

1. VBScript Example

'Export all preferences
ExportPreferences InstallationPath(siFactoryPath) & "myprefs.xsipref"

2. VBScript Example

'Export only the data_management category
ExportPreferences InstallationPath(siFactoryPath) & "myDMprefs.xsipref", "data_management"

3. VBScript Example

'Export 2 categories
ExportPreferences InstallationPath(siFactoryPath) & "myprefs.xsipref", "data_management,scripting"

See Also

ImportPreferences

RestoreDefaultPreference

Preferences.Export



SOFTIMAGE|XSI v6.01     

Return to Softimage XSI Index