Skip to content

Spaces

A JSON object containing all Space entities in the project. Spaces are indexed by numerical keys, allowing access via spaces[0], spaces[1], etc.

Element Object

KeyTypeDescription
meshesArray<Mesh>3D representations of the element.
dsPropsObjectSnaptrude properties (common + space-specific properties).
geometriesObjectVertex data defining the geometry mesh.

dsProps

Space properties include common BIM properties plus the following space-specific properties:

KeyTypeDescription
departmentIdStringID of the department this space belongs to.
massTypeStringDefines the type of space (e.g. Building, Furniture, Department etc.)
room_typeStringLabel of the space.

Mesh Object

The Mesh object contains the standard 3D data and Snaptrude-specific properties.

KeyTypeDescription
uniqueIdNumberThe globally unique identifier for this element (referenced by Storeys).
nameStringName of the mesh.
positionArray<Number>[x, y, z] position.
rotationArray<Number>[x, y, z] rotation (Euler angles).
scalingArray<Number>[x, y, z] scaling.
localMatrixArray<Number>16-element array representing the transformation matrix.
geometryIdStringReference to the geometry definition.
materialIdStringReference to the material.
subMeshesArraySub-mesh definitions (indices, vertices count).