receive_version() / ReceiveVersion() returns the version that triggered the run as a Base tree. Your function walks that tree, picks the objects it cares about, and reports on them. This page shows the shape of the tree and the patterns that work on it.
Versions published before 2026.9 come back in the shape they were published in, unless the server
has converted them: often the same
Collection and DataObject tree with content-hash ids, and
in older versions typed objects such as Objects.BuiltElements.Wall. For that object graph, see
Data Schema. The patterns below work on both.What your function receives
For a version published in 2026.9, the tree is a projection of the version’s bundle:- A
Collectionroot. Itselementshold nestedCollections (layers, categories, or levels, depending on the source application) and the model’s objects. DataObjects. Each object has aname, its geometry indisplayValue, and its attributes inproperties: a nested dictionary with the type’s properties and the instance’s on top. They all share onespeckle_type,Objects.Data.DataObject, so filter onproperties, not on the type.idequalsapplicationId. Treatidas an opaque key. See Attach results to 2026.9 models.- Shared resources as proxies on the root. Materials sit in
renderMaterialProxiesand instance definitions ininstanceDefinitionProxies; placed instances areInstanceProxyobjects.
Walk the tree
Most functions start by flattening the tree into one list. Walkelements from the root: that reaches every collection and object without descending into geometry or proxies.
flatten.py
Flatten.cs
Filter by property
To find the objects a rule applies to, keep theDataObjects and test their properties. Property names and values come from the source application: check a version in the web app to see what yours carries.
filter.py
Filter.cs
Constraints.Base Offset is a nested dictionary in the tree: properties["Constraints"]["Base Offset"].
property_path.py
Group by collection
The collections in the tree are the model’s own grouping: Rhino layers, Revit categories or levels, Blender collections. To report per group, walk the tree and carry the collection each object sits in.group.py