# RunMode enum

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

```cs
public enum RunMode
```

Provides enumerated constants for a command running mode. This is currently interactive or scripted.

## Values

| Name | Value | Description |
| --- | --- | --- |
| Interactive | 0 | Can use dialogs for input. Must use message boxes to report serious error conditions. |
| Scripted | 1 | All input must come from command line, GetPoint, GetObject, GetString, etc. Must use message boxes to report serious error conditions. Script mode gets used when a command is run with a hyphen (-) prefix. |
