
# ILayerStackDocument interface

*No description yet.*

```csharp
public interface ILayerStackDocument
```

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

## Properties

| Property | Type | Access | Description |
| --- | --- | --- | --- |
| [Stackup](#stackup) | [ILsmSdkStackup](https://altiumdeveloper.github.io/ad-sdk-docs/reference/pcb/ILsmSdkStackup.md) | get |  |

### Stackup

*No description yet.*

```csharp
ILsmSdkStackup GetState_Stackup();
```

**Type:** [ILsmSdkStackup](https://altiumdeveloper.github.io/ad-sdk-docs/reference/pcb/ILsmSdkStackup.md) · **Access:** read-only

The accessors are extension methods of `ILayerStackDocumentHelper` (`using PCB;`).

## Methods

| Method | Returns | Description |
| --- | --- | --- |
| [ApplyToPcb](#applytopcb) | `void` |  |
| [CloseDialog](#closedialog) | `void` |  |
| [ComputeImpedance](#computeimpedance) | `void` |  |
| [GetTransmissionLineImageBase64](#gettransmissionlineimagebase64) | `string` |  |
| [LoadFromFile](#loadfromfile) | `void` |  |
| [LoadFromPcb](#loadfrompcb) | `void` |  |
| [LoadFromVault](#loadfromvault) | `void` |  |
| [SaveToFile](#savetofile) | `void` |  |
| [SaveToVault](#savetovault) | `void` |  |
| [SerializeToString](#serializetostring) | `string` |  |
| [ShowDialog](#showdialog) | `void` |  |

### ApplyToPcb

*No description yet.*

```csharp
void ApplyToPcb(string argBoardPath);
```

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

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

### CloseDialog

*No description yet.*

```csharp
void CloseDialog();
```

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

### ComputeImpedance

*No description yet.*

```csharp
void ComputeImpedance();
```

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

### GetTransmissionLineImageBase64

*No description yet.*

```csharp
string GetTransmissionLineImageBase64(string argProfileGuid, string argLayerGuid, string argStackGuid, int argWidth, int argHeight);
```

| Parameter | Type | Passing |
| --- | --- | --- |
| `argProfileGuid` | `string` | value |
| `argLayerGuid` | `string` | value |
| `argStackGuid` | `string` | value |
| `argWidth` | `int` | value |
| `argHeight` | `int` | value |

**Returns:** `string`

### LoadFromFile

*No description yet.*

```csharp
void LoadFromFile(string argPath, TLayerStackDocumentFormat argFormat);
void LoadFromFile(string argPath, int argFormat);
```

| Parameter | Type | Passing |
| --- | --- | --- |
| `argPath` | `string` | value |
| `argFormat` | [TLayerStackDocumentFormat](https://altiumdeveloper.github.io/ad-sdk-docs/reference/pcb/TLayerStackDocumentFormat.md) | value |

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

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

### LoadFromPcb

*No description yet.*

```csharp
void LoadFromPcb(string argBoardPath);
```

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

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

### LoadFromVault

*No description yet.*

```csharp
void LoadFromVault(string argVaultGUID, string argRevisionGuid);
```

| Parameter | Type | Passing |
| --- | --- | --- |
| `argVaultGUID` | `string` | value |
| `argRevisionGuid` | `string` | value |

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

### SaveToFile

*No description yet.*

```csharp
void SaveToFile(string argPath, TLayerStackDocumentFormat argFormat);
void SaveToFile(string argPath, int argFormat);
```

| Parameter | Type | Passing |
| --- | --- | --- |
| `argPath` | `string` | value |
| `argFormat` | [TLayerStackDocumentFormat](https://altiumdeveloper.github.io/ad-sdk-docs/reference/pcb/TLayerStackDocumentFormat.md) | value |

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

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

### SaveToVault

*No description yet.*

```csharp
void SaveToVault(string argVaultGUID, string argFolderGUID, string argItemGUID, string argRevisionGuid);
```

| Parameter | Type | Passing |
| --- | --- | --- |
| `argVaultGUID` | `string` | value |
| `argFolderGUID` | `string` | value |
| `argItemGUID` | `string` | value |
| `argRevisionGuid` | `string` | value |

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

### SerializeToString

*No description yet.*

```csharp
string SerializeToString(TLayerStackDocumentFormat argFormat);
string SerializeToString(int argFormat);
```

| Parameter | Type | Passing |
| --- | --- | --- |
| `argFormat` | [TLayerStackDocumentFormat](https://altiumdeveloper.github.io/ad-sdk-docs/reference/pcb/TLayerStackDocumentFormat.md) | value |

**Returns:** `string`

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

### ShowDialog

*No description yet.*

```csharp
void ShowDialog();
```

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

## Returned by

[ILayerStackManager.CreateDocument](https://altiumdeveloper.github.io/ad-sdk-docs/reference/pcb/ILayerStackManager.md#createdocument), [ILayerStackManager.OpenDocumentFromPcb](https://altiumdeveloper.github.io/ad-sdk-docs/reference/pcb/ILayerStackManager.md#opendocumentfrompcb)
