# Export Schema Tree as PlantUML

## 1. Opening Export Dialog

The Schema Tree can be exported as a PlantUML class diagram. To export, open the Schema Tree view by clicking the **Tree** button for the desired schema, then click the **Export PlantUML** button:

<figure><img src="/files/PJISwu48wUli5HRMTYq7" alt=""><figcaption></figcaption></figure>

## 2. Export Options

The Export PlantUML dialog provides three checkboxes to control the level of detail:

* **Include Fields** — Adds field names and descriptions to each schema class. Enabled by default.
* **Include Formulas** — Adds formula packages with stereotyped elements (constants, variables, formulas, text) and cross-formula links.
* **Include Dependencies** — Expands the diagram to include formulas and schemas referenced by directly linked formulas. Requires **Include Formulas** to be enabled.

<figure><img src="/files/OpMKgNWRPwPUD8hyjRRW" alt=""><figcaption></figcaption></figure>

## 3. Exported File

Clicking **Download** generates and downloads a `.puml` file that can be rendered in any PlantUML-compatible tool (e.g., PlantUML online editor, IntelliJ IDEA, VS Code extensions).

The diagram includes:

* **Schema classes** with parent-child composition arrows
* **Fields** with names and descriptions (when enabled)
* **Formula packages** grouping constants, variables, formulas, and text elements (when enabled)
* **Cross-formula links** shown as dependency arrows (when enabled)
* **Color coding** per element type for easy visual identification


---

# 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://guardian.hedera.com/guardian-dev/guardian/standard-registry/schemas/schema-tree/export-schema-tree-as-plantuml.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.
