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

# export(to:metadataURL:modelProvider:exportOptions:)

Produces a 3D asset from the captured room with the given metadata output URL and model provider.

```
func export(to url: URL, metadataURL: URL? = nil, modelProvider: CapturedRoom.ModelProvider? = nil, exportOptions: CapturedRoom.USDExportOptions = .mesh) throws
```

## Parameters

`url`

A location that the captured room exports to.

`metadataURL`

A location that the captured room metadata exports to.

`modelProvider`

A collection of mappings of object categories and attributes to 3D model URLs.

`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)