
# IServerModel interface

The `IServerModel` interface represents the model set up by the server to be used by the integrated library server.

```csharp
public interface IServerModel
```

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

## Methods

| Method | Returns | Description |
| --- | --- | --- |
| [AddPort](#addport) | `void` |  |
| [CheckModelPins](#checkmodelpins) | `bool` |  |
| [CheckSchPins](#checkschpins) | `bool` |  |
| [Name](#name) | `string` | The method gives the name for the Server Model. |
| [PortCount](#portcount) | `int` | This method returns the number of ports for this Server Model. |
| [PortName](#portname) | `string` |  |

### AddPort

*No description yet.*

```csharp
void AddPort(string argName);
```

| Parameter | Type | Passing |
| --- | --- | --- |
| `argName` | `string` | value |

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

### CheckModelPins

*No description yet.*

```csharp
bool CheckModelPins();
```

**Returns:** `bool`

### CheckSchPins

*No description yet.*

```csharp
bool CheckSchPins();
```

**Returns:** `bool`

### Name

The method gives the name for the Server Model.

```csharp
string Name();
```

**Returns:** `string`

### PortCount

This method returns the number of ports for this Server Model.

```csharp
int PortCount();
```

**Returns:** `int`

### PortName

*No description yet.*

```csharp
string PortName(int argnIndex);
```

| Parameter | Type | Passing |
| --- | --- | --- |
| `argnIndex` | `int` | value |

**Returns:** `string`

## Returned by

[IModelEditor.CreateServerModel](https://altiumdeveloper.github.io/ad-sdk-docs/reference/sch/IModelEditor.md#createservermodel)
