---
title: "modelFileURL(for:)"
framework: roomplan
role: symbol
role_heading: Instance Method
path: "roomplan/capturedroom/modelprovider/modelfileurl(for:)-9irqx"
---

# modelFileURL(for:)

Provides a URL to the 3D model for the given category.

## Declaration

```swift
func modelFileURL(for category: CapturedRoom.Object.Category) throws -> URL?
```

## Parameters

- `category`: An object type that represents criteria for the model-URL query.

## Return Value

Return Value The 3D model that the app associates to the given object’s category via setModelFileURL(_:for:); or, nil if no 3D model URL associates to the given category.

## Discussion

Discussion This function throws CapturedRoom.ModelProvider.Error.nonExistingFile(url:) if a 3D model doesn’t exist at the given URL.

## See Also

### Managing models

- [modelFileURLs](roomplan/capturedroom/modelprovider/modelfileurls.md)
- [modelFileURL(for:)](roomplan/capturedroom/modelprovider/modelfileurl(for:)-96rvb.md)
- [modelFileURL(for:)](roomplan/capturedroom/modelprovider/modelfileurl(for:)-58ykp.md)
- [setModelFileURL(_:for:)](roomplan/capturedroom/modelprovider/setmodelfileurl(_:for:)-8xio.md)
- [setModelFileURL(_:for:)](roomplan/capturedroom/modelprovider/setmodelfileurl(_:for:)-4law9.md)
