<!--
{
  "availability" : [
    "iOS: 16.0.0 -",
    "iPadOS: 16.0.0 -",
    "macCatalyst: 16.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "RoomPlan",
  "identifier" : "/documentation/RoomPlan/CapturedRoom/export(to:exportOptions:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "RoomPlan"
    ],
    "preciseIdentifier" : "s:8RoomPlan08CapturedA0V6export2to0D7Optionsy10Foundation3URLV_AC09USDExportF0VtKF"
  },
  "title" : "export(to:exportOptions:)"
}
-->

# export(to:exportOptions:)

Produces a 3D asset from the captured room.

```
func export(to url: URL, exportOptions: CapturedRoom.USDExportOptions = .mesh) throws
```

## Parameters

`url`

A location that the captured room exports to.

`exportOptions`

Options that determine the export’s data format.

## Discussion

The file format of the output is Universal Scene Description (USD).

> Tip: Before iOS 17.4, the first letter of the USD file name needs to be a character other than a number.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)