Export (Preferences)

Description

Exports one or multiple categories of preferences into a file.

Scripting Syntax

Preferences.Export( Filename, [Categories] )

C# Syntax

Preferences.Export( String in_bstrFile, String in_bstrCategories );

Parameters

Parameter

Type

Description

Filename

String

The filename to export.

Categories

String

The categories to export. The categories must be separated by commas. If null all categories will be exported

Examples

1. JScript Example

// This exports 2 categories
var app = Application;
var path = XSIUtils.BuildPath( app.InstallationPath(siFactoryPath), "myprefs.xsipref" );
app.Preferences.Export(path, "data_management, scripting");

2. VBScript Example

' This exports all preferences
set app = Application
path = XSIUtils.BuildPath( app.InstallationPath(siFactoryPath), "myprefs.xsipref" )
Application.Preferences.Export path

See Also

Preferences.Import

Preferences.Categories

Preferences.GetPreferenceValue

Preferences.SetPreferenceValue

Preferences.RestoreDefault

Preferences.SaveChanges

 

 



Autodesk Softimage v7.5