Appearance
Resources
The resources in this page are available for getBuildings, getBuildingById, getFloors, getFloorById and getLayoutById query.
Building object
Base properties of the building object. Can be combined with the BuildingFilter
graphql
query {
getBuildings {
id
name
createdAt
updatedAt
floors {
id
name
}
}
}Floor object
Base properties of the floor object. Can be combined with the FloorFilter The query runs against the default layout of a floor. To query a non-default layout you can use the getLayoutById query.
graphql
query {
getFloors {
floors {
id
name
level
customId
createdAt
updatedAt
isPrivate
isArchived
}
}
}Archived floors
Floors can be archived in the Archilogic platform. By default, getFloors excludes archived floors — pass archived: true to query them. getFloorById and getLayoutById return any floor regardless of its archived state.
Because SpaceGraph data is not available for archived floors, the following fields behave differently:
| Field | Archived floor value |
|---|---|
spaces | [] (empty array) |
elements | [] (empty array) |
adjacentSpaces | [] (empty array) |
customAttributes | [] (empty array) |
spaceCount | null |
elementCount | null |
seatCapacity | null |
elementSurfaceArea | null |
All other floor-level properties (id, name, area, level, isPrivate, isArchived, labels, location, categories, imageUrl, team, createdAt, updatedAt) are available as usual.
graphql
query {
getFloors(archived: true) {
floors {
id
name
level
area
isArchived
labels {
color
name
}
location {
address {
line1
city
}
}
spaceCount # returns null for archived floors
elementCount # returns null for archived floors
spaces {
id
} # returns [] for archived floors
}
}
}Aggregation methods
Area, element count and space count can be computed for each floor or layout.
graphql
query {
getFloors {
floors {
area
spaceCount
elementCount
elementSurfaceArea
}
}
}You can use area and spaceCount with the SpaceFilter, elementCount and elementSurfaceArea with the ElementFilter.
graphql
query {
getFloors {
floors {
meetArea: area(where: { category: { eq: "meet" } })
workArea: area(where: { category: { eq: "work" } })
meetCount: spaceCount(where: { category: { eq: "meet" } })
workCount: spaceCount(where: { category: { eq: "work" } })
windowCount: elementCount(where: { type: { eq: "element:window" } })
windowArea: elementSurfaceArea(where: { type: { eq: "element:window" } })
}
}
}This works also for getLayoutById or getFloorById and per space
graphql
query ($layoutId: ID!) {
getLayoutById(id: $layoutId) {
spaces {
id
name
doorCount: elementCount(where: { type: { eq: "element:door" } })
assetCount: elementCount(where: { type: { eq: "element:asset" } })
}
}
}Labels
Listing all labels attached to a space.
graphql
query {
getFloors {
floors {
labels {
color
name
}
}
}
}Location
Retrieve location as address or latitude longitude coordinates.
graphql
query {
getFloors {
floors {
location {
address {
line1
city
country
floor
}
coordinates {
lat
long
bearing
}
}
}
}
}Custom attributes
Custom attributes are available for floors, spaces, elements and products. Use the custom attribute filter to query by key and / or value.
To create or update custom attribute definitions either use the UI or the corresponding REST endpoint. To set custom attribute values you can use the editor UI for all resources or the layout operations endpoint.
graphql
query {
getFloors {
floors {
customAttributes {
key
value
title
}
spaces {
customAttributes {
key
value
title
}
}
elements {
customAttributes {
key
value
title
}
product {
customAttributes {
key
value
title
}
}
}
}
}
}Spaces
List the spaces in a floor. Can be filtered with the SpaceFilter
graphql
query {
getFloors {
floors {
spaces {
id
name
customId
area
category
subCategory
seatCapacity
elementCount
elementSurfaceArea
isExternal
}
}
}
}Adjacent spaces
List groups of adjacent spaces in a floor. A result will contain all matching space groups for given floor. Can be filtered with the AdjacentSpaceGroupingFilter
graphql
query {
getFloors {
floors {
adjacentSpaces(where: { subCategory: { eq: "meetingRoom" }, count: 3 }) {
id
name
customId
area
category
subCategory
seatCapacity
}
}
}
}Elements by floor
Elements on a floor
graphql
query {
getFloors {
floors {
elements {
id
name
customId
type
isExternal
dimensions {
length
width
height
}
}
}
}
}Elements can be filtered using the ElementFilter
graphql
query {
getFloors {
floors {
elements(where: { type: { eq: "element:window" }, isExternal: true }) {
id
}
}
}
}Elements by space
Elements that are within (assets) or adjacent (walls) to a space
graphql
query {
getFloors {
floors {
spaces {
elements {
id
name
customId
type
isExternal
dimensions {
length
width
height
}
}
}
}
}
}Geometry
Spaces and elements expose their geometry in floor coordinates. All values are in meters, rounded to 0.1 mm, and match what the Extension SDK returns for the same node.
| Field | Type | Description |
|---|---|---|
dimensions | { length, width, height } | Size of the object aligned bounding box: length along x, height along y, width along z. |
boundingBox | { min, max } | Axis aligned bounding box, y up. min and max are [x, y, z]. |
labelPoint | [x, z] | A point inside the contour to place a label at. |
contour | [[[x, z], ...], ...] | Floor plan polygon as rings of [x, z] points: outer ring first, then holes. For a space it is the net polygon inside the wall faces, for a wall its profile, for any other element the footprint of its bounding box. |
labelPoint and contour are null when a node has no contour, for example a wall with an empty profile.
graphql
query {
getFloors {
floors {
spaces(where: { subCategory: { eq: "meetingRoom" } }) {
id
name
dimensions {
length
width
height
}
boundingBox {
min
max
}
labelPoint
contour
}
}
}
}Elements take the same four fields. A space of 4 by 3 meters comes back like this:
json
{
"id": "5a1f3c9e-2b7d-4e0a-9c61-8d2f4b6a7e10",
"name": "Meeting room 1",
"dimensions": { "length": 4, "width": 3, "height": 2.8 },
"boundingBox": { "min": [12.5, 0, -6.25], "max": [16.5, 2.8, -3.25] },
"labelPoint": [14.5, -4.75],
"contour": [
[
[12.5, -6.25],
[16.5, -6.25],
[16.5, -3.25],
[12.5, -3.25]
]
]
}Geometry can also be used to filter spaces and elements, see Geometry filters.

