---
title: "saveWorkspaceFile"
canonical: "https://help.vicon.com/space/ShogunPost121/1253737793/saveWorkspaceFile"
format: markdown
---
# Description

This command saves the workspace layout, which is fully configurable in Shogun Post. The visibility and position of docking windows can be saved to an XML file and then used to restore the workspace layout when required.

## Functional area

Interface

# Command syntax

## Syntax

> Macro (scroll-tablelayout)

|  |
| --- |
| `saveWorkspaceFile "fileName"` |

### Arguments

| Name | Type | Required | Comments |
| --- | --- | --- | --- |
| `filename` | string | yes | Path to a text file to write the XML code for the workspace layout |

### Flags

None

## Return value

void

## Examples

```plaintext
//save a workspace XML file to the root of C drive
saveWorkspaceFile "C:/layout.xml";
```

# Additional information

## Related commands

- [loadWorkspaceString](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost121/pages/1253737605)