# SelCommand class

Namespace: [Rhino.Commands](https://developer.rhino3d.com/api/rhinocommon/namespace/rhino.commands.md) · Assembly: [RhinoCommon](https://developer.rhino3d.com/api/rhinocommon/assembly/rhinocommon.md)

```cs
public abstract class SelCommand : Command
```

For adding nestable whole object and subobject selection commands, derive your command from SelCommand and override the abstract SelFilter and virtual SelSubObjectFilter functions.

## Properties

- [BeQuiet](https://developer.rhino3d.com/api/rhinocommon/type/rhino.commands.selcommand/bequiet.md)
- [TestGrips](https://developer.rhino3d.com/api/rhinocommon/type/rhino.commands.selcommand/testgrips.md)
- [TestLights](https://developer.rhino3d.com/api/rhinocommon/type/rhino.commands.selcommand/testlights.md)

## Methods

- [RunCommand](https://developer.rhino3d.com/api/rhinocommon/type/rhino.commands.selcommand/runcommand.md)
- [SelFilter](https://developer.rhino3d.com/api/rhinocommon/type/rhino.commands.selcommand/selfilter.md): Override this abstract function and return true if object should be selected.
- [SelSubObjectFilter](https://developer.rhino3d.com/api/rhinocommon/type/rhino.commands.selcommand/selsubobjectfilter.md): To select subobjects, override this virtual function, add component indices of the subobjects that should get selected to indicesToSelect list and return true. This is called only if the SelFilter returns false and the whole object does not get selected.

## Inherited Members

- From [Command](https://developer.rhino3d.com/api/rhinocommon/type/rhino.commands.command.md): [CommandContextHelpUrl](https://developer.rhino3d.com/api/rhinocommon/type/rhino.commands.command/commandcontexthelpurl.md), [EnglishName](https://developer.rhino3d.com/api/rhinocommon/type/rhino.commands.command/englishname.md), [HistoryReplayOnObjectAttributeChange](https://developer.rhino3d.com/api/rhinocommon/type/rhino.commands.command/historyreplayonobjectattributechange.md), [Id](https://developer.rhino3d.com/api/rhinocommon/type/rhino.commands.command/id.md), [LocalName](https://developer.rhino3d.com/api/rhinocommon/type/rhino.commands.command/localname.md), [PlugIn](https://developer.rhino3d.com/api/rhinocommon/type/rhino.commands.command/plugin.md), [Settings](https://developer.rhino3d.com/api/rhinocommon/type/rhino.commands.command/settings.md), [OnHelp](https://developer.rhino3d.com/api/rhinocommon/type/rhino.commands.command/onhelp.md), [ReplayHistory](https://developer.rhino3d.com/api/rhinocommon/type/rhino.commands.command/replayhistory.md)
