## Selection.Add

### Description

Adds a single object to the selection.

### C# Syntax

    Selection.Add( Object in_pObj, siSelectMode in_selType );

### Scripting Syntax

    Selection.Add( Object, SelectionMode );

### Parameters

Parameter | Type | Description
--- | --- | ---
Object | Object (ie., X3DObject, Camera, Light, etc.) | Object to add to selection
SelectionMode | siSelectMode | Specifies how the object selected in hierarchy. Default Value: siSelectDefault

### Examples

#### VBScript Example

    set sel = Application.Selection

    set c = ActiveSceneRoot.AddGeometry( "Cone", "NurbsSurface" )

    set g = ActiveSceneRoot.AddGeometry( "Grid", "NurbsSurface" )

    sel.Add c, siSelectDefault

    sel.Add g, siSelectDefault

    for each i in sel

    LogMessage i.Name

    next

    'Output of above script:

    'INFO : "cone"

    'INFO : "grid"

### See Also

Selection.SetAsText