> For the complete documentation index, see [llms.txt](https://docs.ladybug.tools/dragonfly-primer/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.ladybug.tools/dragonfly-primer/components/6_alternativeweather/write_ddy.md).

# Write DDY

![](/files/-MihrcSTm1oeH7sHVfR-)

![](/files/-Ma9gM9NWq-rzXLYKUfa) - [\[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;
