RestoreDefault (Preferences)

Description

Restores the default values for a preference or for all preferences in a category. A category is a set of preferences on the same subject grouped together in a node under the Preferences object located under the Application.

Scripting Syntax

Preferences.RestoreDefault( PreferenceName )

C# Syntax

Preferences.RestoreDefault( String in_bstrPrefName );

Parameters

Parameter

Type

Description

PreferenceName

String

The category or the preference to restore the default value. It can also be a specific preference.

Examples

1. VBScript Example

' This restore default for the data_management category
Application.Preferences.RestoreDefault "data_management"

2. VBScript Example

' This restore default only for this preference
Application.Preferences.RestoreDefault "scripting.language"


SOFTIMAGE|XSI v6.01     

Return to Softimage XSI Index