Softimage SDK Programmer's Guide > Working with the SDK > Selection > Manipulating the Selection >

# Selecting a Single Item (Adding to the Selection)

- Use Selection.Add or Selection::Add which take an object pointer as input:

    // C++ API
    Application app;
    Model root = app.GetActiveSceneRoot();
    X3DObject myGrid;
    root.AddGeometry( L"Grid", L"NurbsSurface", L"myGrid", myGrid );
    Selection sel( app.GetSelection() );
    sel.Add( myGrid );

    // C#
    CXSIApplication app = new CXSIApplication();
    Model root = app.ActiveSceneRoot;
    X3DObject myGrid = root.AddGeometry("Grid", "NurbsSurface", "myGrid");
    Selection sel = app.Selection;
    sel.Add(myGrid, siSelectMode.siSelectDefault);

    // JScript
    var myGrid = ActiveSceneRoot.AddGeometry( "Grid", "NurbsSurface" );
    Selection.Add( myGrid );

    ' VBScript
    set myGrid = ActiveSceneRoot.AddGeometry( "Grid", "NurbsSurface" )
    Selection.Add myGrid

    # Python
    app = Application
    myGrid = app.ActiveSceneRoot.AddGeometry( "Grid", "NurbsSurface" )
    app.Selection.Add( myGrid )

## Related Scripting Commands

- AddToSelection

- SelectObj

- SelectTree, SelectBranch, SelectModel

- GrowSelection, InvertSelection

- SelectAllUsingFilter, SelectGeometryComponents, SelectAdjacent

- ToggleSelection, ToggleObjectComponentSelectionFilter, ToggleParameterValue, SetAndToggleSelection

- ActivateElements, SetActiveElements, ToggleActiveElements, SetAndToggleActiveElements

- ConvertSelection, ConvertSelectionToEdges, ConvertSelectionToPoints, ConvertSelectionToPolygons