# Rhino Command Button

## Description

Run a specified command when clicked

{% tabs %}
{% tab title="Preview" %}
![](https://97674526-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOQQ5Dv56AckPkeQ6O9Rf%2Fuploads%2FsI41tUAGjQeIzcIwg3nh%2FRhCommand.png?alt=media\&token=6ca7a74c-4f0c-478c-9217-ff7f842c4e09)
{% endtab %}

{% tab title="Location" %}
**Name** | Ui Rhino Command Button

**Nickname** | Rh Cmd Btn

**Tab** | Ui

**Panel** | Command

**Division** | 1
{% endtab %}

{% tab title="Inputs" %}
**\*E** | **Element** (*Ui+ Element*) | An optional input for an Element.&#x20;

> If an Element is input it will be updated, if empty a new Element will be created.
>
> The input control must be of the same type as the component

**L** | **Label** (*Text*) | The control label

**C** | **Commands** (*Text*) | A list of [Rhinoscript ](https://developer.rhino3d.com/guides/rhinoscript/)Commands
{% endtab %}

{% tab title="Ouputs" %}
**E** | **Element** (*Ui+ Element*) | Ui Element Control.&#x20;
{% endtab %}

{% tab title="Mode" %}
*none*
{% endtab %}
{% endtabs %}

## Usage

![](https://97674526-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOQQ5Dv56AckPkeQ6O9Rf%2Fuploads%2FohHE1ypCgfVKFz022bLQ%2FRhinoCommand.gif?alt=media\&token=7060a7a3-a02a-47f4-b730-f451cd96b084)
