This page describes traversal of the object graph of versions published before 2026.9. Bundle data
has no tree to walk, so follow named relations instead; see
Relations.
Recipe 1: Traverse Collections and Objects
The most common pattern: walk the collection hierarchy to find all objects.Recipe 2: Find All DataObjects
Filter for DataObjects specifically:Recipe 3: Process Geometry from displayValue
Extract and process geometry from DataObjects:Recipe 4: Resolve Proxy References
Find which objects use a specific resource:Recipe 5: Find Resources for an Object
Find which resources (materials, groups, etc.) an object uses:Recipe 6: Resolve Instance Definitions
Get geometry for instance objects:Recipe 7: Build Object-Resource Map
Create a lookup map for efficient access:Recipe 8: Filter by Properties
Find objects matching specific property criteria:Recipe 9: Process by Collection Path
Process objects organized by their collection hierarchy:Recipe 10: Extract Model Statistics
Gather statistics about a model:Common Patterns Summary
- Always check for attributes - Use
hasattr()before accessing properties - Handle empty arrays -
displayValueandobjectsmay be empty - Use applicationId for references - Proxies reference by
applicationId, notid - Recurse collections - Collections can be nested to any depth
- Check speckle_type - Use
speckle_typeto identify object types - Proxies are at root - Always look for proxies in Root Collection
- Geometry in displayValue - All DataObject geometry is in
displayValue
Next Steps
- Connector Index - Connector-specific traversal considerations
- Review Object Schema, Geometry Schema, Proxy Schema for details