# 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;


---

# 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/dragonfly-primer/components/6_alternativeweather/write_ddy.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.
