## SIGetPreset

### Introduced

v1.0

### Description

Pops up a browser for selecting a preset from the factory location. Returns the selected preset object.

### Scripting Syntax

    oReturn = SIGetPreset( [Path], [Family] );

### Return Value

Returns the preset object selected by the user. Empty if Cancel was pressed.

### Parameters

Parameter | Type | Description
--- | --- | ---
Path | String | Specifies a subdirectory in the DSPresets folder to browse. Default Value: Root DSPresets folder
Family | String | Specify a Preset family name. Only presets for objects in that family will be visible in the browser Default Value: Presets of all families will appear in the browser

### Examples

#### VBScript Example

    'Open the browser in the {installationpath}\DSPresets\Shaders\Material directory
    dim p
    set p = SIGetPreset( "Shaders\Material", "Material Shaders" )
    if TypeName( p ) = "Nothing" then
            msgbox "Canceled"
    else
            msgbox  "Select preset = " & p
    end if

### See Also

AddProp XSIApplication.InstallationPath