# Write DDY

![](https://3405893330-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Ma9gBkJelXEQ5LsYEl7%2Fuploads%2Fgit-blob-5e17e39d7c6adc1d499a30e9c52ecaba288c2a89%2FWrite_DDY.png?alt=media)

![](https://3405893330-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-Ma9gBkJelXEQ5LsYEl7%2Fsync%2F5be7940f1a3829352d46e3fc7add53ca0aadffb1.png?generation=1621529559121355\&alt=media) - [\[source code\]](https://github.com/ladybug-tools/dragonfly-grasshopper/blob/master/dragonfly_grasshopper/src/DF%20Write%20DDY.py)

Write Ladybug DesignDays to a standard .ddy file.

## Inputs

* **location \[Required]**

  A Ladybug Location object describing the location data in the weather file.&#x20;
* **design\_days \[Required]**

  A list of DesignDay objects representing the design days contained within the ddy file.&#x20;
* **folder**

  An optional folder to save the .ddy file.&#x20;
* **name**

  An optional name for this .ddy file.&#x20;
* **run \[Required]**

  Set to "True" to run the component and write the .ddy file.&#x20;

## Outputs

* **ddy\_file**

  A .ddy file path that has been written to your system.&#x20;
