
# IMacroManager interface

*No description yet.*

```csharp
public interface IMacroManager
```

**Namespace:** DXP · **Assembly:** Altium.SDK.Interfaces

**Derived:** [IMacroManager2](https://altiumdeveloper.github.io/ad-sdk-docs/reference/dxp/IMacroManager2.md)

## Methods

| Method | Returns | Description |
| --- | --- | --- |
| [AddRecord](#addrecord) | `int` |  |
| [GetState](#getstate) | [TMacroManagerState](https://altiumdeveloper.github.io/ad-sdk-docs/reference/dxp/TMacroManagerState.md) |  |
| [PlayFromFile](#playfromfile) | `void` |  |
| [UpdateRecord](#updaterecord) | `void` |  |

### AddRecord

*No description yet.*

```csharp
int AddRecord(string argServer, string argCode, string argData);
```

| Parameter | Type | Passing |
| --- | --- | --- |
| `argServer` | `string` | value |
| `argCode` | `string` | value |
| `argData` | `string` | value |

**Returns:** `int`

### GetState

*No description yet.*

```csharp
TMacroManagerState GetState();
```

**Returns:** [TMacroManagerState](https://altiumdeveloper.github.io/ad-sdk-docs/reference/dxp/TMacroManagerState.md)

Extension method of `IMacroManagerHelper` (`using DXP;`).

### PlayFromFile

*No description yet.*

```csharp
void PlayFromFile(string argFile, IMacroEventListener argListener);
void PlayFromFile(string argFile, object argListener);
```

| Parameter | Type | Passing |
| --- | --- | --- |
| `argFile` | `string` | value |
| `argListener` | [IMacroEventListener](https://altiumdeveloper.github.io/ad-sdk-docs/reference/dxp/IMacroEventListener.md) | value |

**Returns:** nothing (`void`)

The first overload is an extension method of `IMacroManagerHelper` (`using DXP;`) with typed parameters; the second is declared by the interface.

### UpdateRecord

*No description yet.*

```csharp
void UpdateRecord(int argID, string argCode, string argData);
```

| Parameter | Type | Passing |
| --- | --- | --- |
| `argID` | `int` | value |
| `argCode` | `string` | value |
| `argData` | `string` | value |

**Returns:** nothing (`void`)

## Returned by

[IClient.GetMacroManager](https://altiumdeveloper.github.io/ad-sdk-docs/reference/dxp/IClient.md#getmacromanager)
