---
title: "exportFlattened(to:)"
framework: usdkit
role: symbol
role_heading: Instance Method
path: "usdkit/usdstage-4sfi1/exportflattened(to:)-6717d"
---

# exportFlattened(to:)

Exports the stage as a flattened USD file.

## Declaration

```swift
func exportFlattened(to path: FilePath) throws
```

## See Also

### Exporting the stage

- [exportPackage(to:options:)](usdkit/usdstage-4sfi1/exportpackage(to:options:)-6s2wk.md)
- [exportPackage(to:options:)](usdkit/usdstage-4sfi1/exportpackage(to:options:)-2x7yr.md)
- [exportFlattened(to:)](usdkit/usdstage-4sfi1/exportflattened(to:)-98kpc.md)
- [USDStage.ExportOptions](usdkit/usdstage-4sfi1/exportoptions.md)
