# Dump VisualizationSet

![](/files/hbGrpEidE2bOMqIwKwAM)

![](/files/iAX9e5wKORoO3Pauky2b) - [\[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.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.ladybug.tools/ladybug-primer/components/4_extra/dump_visualizationset.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
