# Dump VisualizationSet

![](https://894783789-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LPHXQ1I3gb93zpLrLZf%2Fuploads%2Fgit-blob-6dd7485068f3cf4763af6708c4c3dc7dad422f38%2FDump_VisualizationSet.png?alt=media)

![](https://894783789-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LPHXQ1I3gb93zpLrLZf%2Fuploads%2Fgit-blob-34b8219d243854653a21e4c9c7cfdbc69e21fa58%2FDump_VisualizationSet.png?alt=media) - [\[source code\]](https://github.com/ladybug-tools/ladybug-grasshopper/blob/master/ladybug_grasshopper/src/LB%20Dump%20VisualizationSet.py)

Dump a Ladybug VisualiztionSet into a file.

The "LB Preview VisualizationSet" component can be used to visualize the content from the file back into Grasshopper.

### Inputs

* **vis\_set \[Required]**

A VisualizationSet object to be written to a file. This can also be VisualizationSet arguments from any Ladybug Tools component with a vis\_set output.

* **format**

Text or an integer to set the format of the output file. Choose from the options below. (Default: SVG).

```
* 0 = SVG - Interactive Scaleable Vector Graphic for web browsers

* 1 = JSON - Cross-language and handles any types of collections

* 2 = PKL - Compressed format only readable with Python
```

* **svg\_view**

An optional text string for the view for which the SVG will be generated. Choose from the options below. (Default: Top).

```
* Top

* Left

* Right

* Front

* Back

* NE

* NW

* SE

* SW
```

* **svg\_width**

The screen width in pixels. (Default: 800).

* **svg\_height**

The screen height in pixels. (Default: 600).

* **legend\_2d**

A boolean to note whether the geometry in the visulaization set should be rendered using the 2D Legend Parameters instead of the 3D ones. (Default: False).

* **name**

A name for the file to which the VisualizationSet will be written. The default is derived from the identifier of the visualization set.

* **folder**

An optional directory into which the VisualizationSet will be written. The default is set to a user-specific simulation folder.

* **dump \[Required]**

Set to "True" to save the VisualizationSet to a file.

### Outputs

* **report**

Errors, warnings, etc.

* **vs\_file**

The path of the file where the VisualisationSet is saved. The "LB Preview VisualizationSet" component can be used to visualize the content from the file back into Grasshopper.
