---
title: "atPath(_:)"
framework: modelio
role: symbol
role_heading: Instance Method
path: "modelio/mdlobject/atpath(_:)"
---

# atPath(_:)

Returns the child object at the specified path.

## Declaration

```swift
func atPath(_ path: String) -> MDLObject
```

## Parameters

- `path`: A path that identifies the object to be found using object names.

## Return Value

Return Value The requested object, or nil if no object matching the path can be found.

## Discussion

Discussion See the path property for examples of how to construct object paths for searching.

## See Also

### Working with Object Hierarchies

- [parent](modelio/mdlobject/parent.md)
- [children](modelio/mdlobject/children.md)
- [addChild(_:)](modelio/mdlobject/addchild(_:).md)
- [enumerateChildObjects(of:root:using:stopPointer:)](modelio/mdlobject/enumeratechildobjects(of:root:using:stoppointer:).md)
- [path](modelio/mdlobject/path.md)
