# model.getCurve

Deletes line from specified Input of curently selected model.

## Syntax

model.getCurve( curveID )

## Parameters

<table><thead><tr><th width="136.47889908256883">Name</th><th width="124">Type</th><th width="64" data-type="checkbox">Req</th><th>Description</th></tr></thead><tbody><tr><td><strong>curveID</strong></td><td>number</td><td>true</td><td>Curve ID number. Indexing starts with 0, thus use 0 for curve 1, 7 for Input 8 etc.</td></tr></tbody></table>

## Return values

* `nil` requested curve does not exist
* `table` containing model information with following fields:

<table data-header-hidden><thead><tr><th width="147.38333333333333">Field</th><th width="102">Type</th><th>Decription</th></tr></thead><tbody><tr><td><code>name</code></td><td>string</td><td>Curve name</td></tr><tr><td><code>type</code></td><td>number</td><td>Curve type ID number<br>0 - ???<br>1 - ???<br>2 - ???</td></tr><tr><td><code>smooth</code></td><td>boolean</td><td><code>true</code> if curve is smoothed, otherwise <code>false</code></td></tr><tr><td><code>points</code></td><td>number</td><td>number of curve's points</td></tr><tr><td><code>y</code></td><td>table</td><td>table of points y coordinates values<br><code>table key</code> (number, starts from 1) - point number<br><code>table value</code> (signed number) - point's y coordonate value</td></tr><tr><td><code>x</code></td><td>table</td><td>table of points x coordinates values<br><code>table key</code> (number, starts from 1) - point number<br><code>table value</code> (signed number) - point's x coordonate value</td></tr></tbody></table>

## API Status

<table><thead><tr><th width="161"></th><th width="71.1764705882353" data-type="checkbox">Avail</th><th width="145">Status<select></select></th><th>Comment</th></tr></thead><tbody><tr><td>BW radios</td><td>true</td><td></td><td></td></tr><tr><td>Color radios</td><td>true</td><td></td><td></td></tr></tbody></table>

## Change log

<table><thead><tr><th width="177">EdgeTX version</th><th>Change</th></tr></thead><tbody><tr><td>2.4.0</td><td>Introduced</td></tr><tr><td>2.9.0</td><td>changed <code>x</code> and <code>y</code> table index from zero based to normal LUA (starts from 1)</td></tr></tbody></table>

## Examples

Example description

```lua
-- sample script
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://luadoc.edgetx.org/lua-api-reference/model/getcurve.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
