Import
Example
Notes
- Each problem has a
path, acodeand amessage. assertValidBuildingModelreturns the typed model, or throwsBmValidationError.- An opening that overlaps another opening, or whose offset is not on its wall, is an error. Floorkit does not move it.
- Whether an opening fits between the joints of its wall is a fact of the build, not of this check: the build reports
opening-does-not-fitinwarnings. - A size must be a number above zero:
thickness,height,width,depth,radius, the stair sizes, the doorpanelThicknessandframeWidth, and the windowpaneThickness. Text such as"0.2"is refused. The issue gives the path, the code and the value, such asbad-widthandgot 0. - A key that is not a field is refused with
unknown-fieldat its path, such as$.buildings[0].storeys[0].railings[0].panel, in a file of every version. This holds for the model, the site, a building, a storey, a mass and its parts, a wall, a hosted or free opening, a slab, roof, room, stair, column, beam, railing, block, model object, annotation and room separator. Keep data of your own in the model’smetadataor in thepropertySetsof an element. A free-opening field on a hosted opening in a version 3 or 4 file ispose-field-on-hosted-openinginstead. - A size can be at most 100 000 m and a
baseOffsetat most 10 000 m either way: a slab or roofthickness; a column, beam, railing or roomheight,width,depthorradius; a slab, roof, column, room or stairbaseOffset. Floorkit cannot build a larger size, nor keep a larger offset to the millimetre, so the check refuses the value with the code of the field, such asbad-thickness. - A column with no
centeris placed at[0, 0], with the warningmissing-center. - A wall thinner than 0.02 m gives the warning
thin-wallat itsthickness, with the value. It still builds. - A wall taller than 1000 m or thicker than 10 m cannot build: the build refuses it with
wall-not-buildableat itsheightorthickness, with the value. - Two rooms of a storey that overlap give the warning
room-overlap, with both ids and the area in m². - A railing has a
pathor ahost, not both. Ahostand a stairslabHolemust name elements that exist. - A
bowbay takesouterStartOffset(0 to 1 m: its outer line starts that far past each jamb) andfacetWidths(one width above 0 for each facet, wall-start side first). The facets run on the arc from one start of the outer line to the other, out toprojection; widths that miss it by more than 1 cm in all are refused withbay-facet-widths-do-not-fit, and the message gives widths that fit. A bad value is refused withbad-bay-outer-startorbad-bay-facet-widths, and either field on a bay that is notbowwithbay-field-not-for-shape. Absent, the bow starts at the jambs with equal facets, as before. - A valid model can fail in the build step, because the build also checks the geometry.
Signature
Parameters
Returns
assertValidBuildingModel
Validate and return the document, throwingBmValidationError listing every problem.
BmValidationError
savedWallThickness
The thickness of a saved wall: its ownthickness, else the sum of the layers of its type.
typeRef names no key of wallTypes, or a wall without typeRef has no
thickness.
savedWallTop
Metres from the storey’s level to the top of a saved wall.roofEdgeKinds
The kind of each outer-ring edge of a saved roof, in outline order (edge i =outerRing[i] → [i+1]): the edge’s saved kind, else the default of roofType the roof builder gives that edge.
resolveWallJoins
Every join the builder makes between a storey’s saved walls: each end that meets nothing (free), each node of ends, each end seated on another wall’s body, each crossing and each face trim, with its point and members.
curtainWallRuns
The net start and end of each segment of a saved curtain wall, after its joins with other walls and with its own segments.modelInState
Types
BuildingModel
Discriminator. Identifiers written by earlier versions are accepted on input and replaced by
these; anything else is rejected rather than guessed at.
From version 5 a hosted opening’s
offset counts along the wall’s saved location line from its
saved start, wherever a join leaves the built end of the wall. An earlier file is moved to it when
it is opened (migrateHostedOpeningStations): each opening keeps the place it was drawn at.Catalog assets, referenced by instances.
.op / .opbase remain the asset format.Wall types, referenced by a wall’s
typeRef. A key shares the id namespace of the document: it
must not equal any element id.Reserved for the opening type library. Its ids share the document namespace.
Materials, named by the
material of a wall, a wall layer or a roof. A key shares the id
namespace of the document: it must not equal any element id.ModelState
ModelInState type
RoofEdgeKind
What one outer-ring edge of a pitched roof is: an eave, a gable end (verge) or a half-hip.ResolveWallJoinsOptions
The storey the walls stand on: its elevation and height (a wall’s default height), its saved wall
network state and join overrides. Elevation 0, height 3 and no saved state when absent.
The building’s wall types, for walls that take their thickness from
typeRef.WallJoin
One join the builder makes.The builder’s junction key, which
BmStorey.wallJoins names; face:<segment end>:<host> for a face trim. Segments are named as the builder names them: the run’s id,
then <id>:segment:<n>.Where the join is, in plan
[x, z] metres: the node, the stem’s seat, or the crossing.For a node of ends: the join type in force (the saved override, the first end’s, the network
default).
CurtainWallRun
The net stretch of one segment of a curtain wall.Stations in metres along the whole wall run, as
divisions.offsets of kind positions counts
them: the outer faces of the two edge mullions.WallJoinKind
How walls meet.WallJoinMember
One wall at a join: an end of one segment of a saved wall run, or a point along its body.JoinType
WallEnd
BmArcObject
A circular arc authored in a building working plane; angles are radians.BmCuboidObject
BmCylinderObject
An analytic upright cylinder centered in a horizontal building working plane.BmCuboidSizeObject
An upright solid dimensioned around a horizontal working-plane center.BmCuboidFreeformObject
An upright extrusion with an authored footprint and optional through holes.BmLineObject
A straight segment authored in the local coordinates of a building working plane.BmPolylineObject
An open path authored as vertices in a building working plane.BmPolygonObject
A filled profile authored in a building working plane.BmRectangleObject
BmRectangleSizeObject
A rectangle dimensioned around a center in plane-local coordinates.BmRectangleFreeformObject
An edited rectangle saved as an arbitrary filled plane-local profile.BmModelObject
Extend this discriminated union as additional model primitives are supported.BmWorkingPlane
A named local 2D frame in world XYZ coordinates.BmColor
A colour as#rrggbb.
BmSceneCategory
BmPsetValue
Named property sets with scalar values.BmPsets
BmPhase
The renovation status of an element: absent meansnew.
BmCameraPose
A camera pose.BmSite
The parcel.Degrees from project north (−Z) to true north, positive clockwise from above. Any finite angle;
replace-site and an opened model store it in -180..180 (720 becomes 0, 270 becomes -90).The zoning rules this document was evaluated against — values are the consumer’s; the schema and
evaluator are
zoning/.Grid coordinates of the model origin, in the projected grid
crs names (EPSG:<code>, in
metres, easting to the east and northing to the north). Any projected grid: Floorkit keeps no
register of systems and refuses only a code of EPSG’s 4000–4999 latitude-longitude block.Other land the applicant owns, beside the
boundary of the application site.The rivers, drains and ponds around the site, drawn as banks with their names on a site plan.
Spot levels of the ground, which is the surface through them. Absent: flat at
elevation. This is
the finished ground: walls reach down to it and context buildings stand on it.Spot levels of the ground as it was surveyed before the works, the surface through them, with the
rules of
groundPoints. It shapes nothing; a section or elevation draws it as its own
existing-ground line. Absent: no existing ground is drawn.The ground around the plot, for its contours and its 3D surface; it shapes no building.
BmContextBuilding
A building beside the site: an outline, eaves and ridge heights and a roof type.World Y of its ground. Absent: the lowest of the site’s
groundPoints surface under its outline;
without them, the lowest of surroundingGround there when its heightBasis is assumed and it
stands outside the plot; else the site elevation.Where its heights come from. Elevations and sections leave an
assumed one out.BmSurroundingGround
The ground around the plot as a regular grid of heights.World Y of each sample, row by row: columns along +x, rows along +z; 2 rows to 40 000 samples.
BmRoad
A road beside the site: its carriageway, either acentreline with a width (the kerbs stand width / 2 either side of it, and the ends stay open, as a road runs on off the plan) or a closed outline.
World XZ points along the middle of the carriageway, two or more, no two in a row the same.
World XZ outline of the carriageway, with its islands as holes. Instead of
centreline and
width.BmWater
A water beside the site: a river, a drain or a canal as acentreline with a width (its banks stand width / 2 either side, open at the ends, as the water runs on off the plan), or a pond or a lake as a closed outline.
World XZ outline of the water, with its islands as holes. Instead of
centreline and width.Only with
outline: one kind for each edge of its outer ring, edge i running from point i to
the next (the last closes the ring). A bank draws; a cut is where a traced stretch of a river
ends and the water runs on, and draws nothing. Absent: every edge is a bank.BmConditioning
BmBuilding
The massing volume, when the building is (also) a mass. Its segments REFERENCE storeys in
storeys by id — the storey list stays the single source of elevations and heights, and a storey
may carry zero elements while the mass gives it a body.BmGridLine
A grid line in the world XZ plane, with a bubble at one end, the other or both.BmLevel
A datum level of a building: a named elevation in metres, above the world origin.BmMassSegment
One extruded segment of a mass (podium, tower, setback), bottom-up.Colour of this part,
#rrggbb. A part without one takes the color of the mass, else the colour
of its use in the palette of the build (MASS_COLORS_BY_USE, or BuildOptions.massColors), else
#a0b8c8.BmMass
BmWallSegmentRef
Authored identity of one segment, including a closed run’s final wrap segment.BmDetachedFaceTrim
Auxiliary face trim; axes and host/opening ownership stay in authored walls.BmWallNetworkState
V4 reconstruction state; saved nonautomatic joining is not supported yet.BmStorey
One storey.What the plate of this storey counts as (basement, core, parking, …). Derived when absent: a
parking use gives parking, a storey whose top is at or below the site grade gives basement,
otherwise gross. Zoning counts toward the floor area ratio only the kinds in countsTowardFAR.Plan notes of this storey in model metres: dimensions, texts and leaders. They have no 3D body.
Lines that split rooms without a wall, in the world XZ plane. They have no 3D body.
BmAnnotationRef
One end of a dimension tied to an authored element, such as a wall: an end or a face of it.BmDimensionAnnotation
A dimension line between two points of the storey plan, in model metres.Distance of the dimension line from the measured points, in metres; the sign picks the side.
BmTextAnnotation
A text note at a point of the storey plan.BmLeaderAnnotation
A leader: a text joined by a polyline to the point it names.The mark at the target: an open arrow, a filled dot, or nothing. Default
arrow.BmStoreyAnnotation
A plan note of a storey, in model metres.BmRoomSeparator
A polyline that splits rooms where there is no wall, with 2 points or more.BmWall
Centreline in the world XZ plane. Network walls require horizontal paths, so there is no Y here to
get wrong; the compiler places it at the storey’s elevation.
One entry per segment: segment
i runs from points[i] to the next point (the first one for the
closing segment of a closed wall). An entry { through } makes that segment a circular
arc through the point through; null, a missing entry or no arcs is a straight segment.
Stations (an opening’s offset) run along the arc length.Free-end layer closing on a typed, open wall. A missing end uses the wall type.
Absent on a wall with
typeRef, whose type gives the thickness; required on every other wall.
Read a saved wall’s thickness with savedWallThickness.Metres from the wall’s foot (
baseOffset) to its top, as Revit’s “Unconnected Height” and
Archicad’s wall height. Absent, the top is the owning storey’s height above its level.Metres from the storey’s level to the wall’s foot: below it when negative, above it when positive
(Revit: “Base Offset”; Archicad: the base’s offset to the home storey). A wall with a
height
moves as a whole; without one its top stays where it is. The heights of its openings stay measured
from the storey’s level. A plinth and the rows of a curtain grid start at this foot; with
baseToGround the base fills from this foot down to the ground. Below the top of the wall; 0 when
absent.The wall top follows the underside of the roofs of its storey where a roof covers it, as Revit’s
“Attach Top” does; where no roof covers it the wall keeps its
height. The top is made at build
time, so a roof edit carries the wall in the same step. Off when absent.The wall goes on below its storey down to the site ground, as a plinth: where the ground under the
wall lies below the wall’s bottom, a base of the wall’s own plan shape fills down to the lowest
ground point under it. Off when absent. The storey slab is not changed.
A band of another material at the foot of the wall, as a brick plinth under render (Revit: a
stacked wall, or a split region of the outer layer): from the wall’s bottom up to
height above
it, level along its top. The bottom is the lowest ground under the wall when the base runs to the
ground, else the wall’s base. On a wall with a type the band is the type’s first layer; on a wall
without one it is the whole thickness. Openings cut it. In a gap of gaps the wall’s own material
stands down to its bottom. Absent: no plinth.Bands of another material on the wall between two heights, as a timber band in render (Revit: a
split region of the outer layer). On a wall with a type a band is the type’s first layer; on a
wall without one it is the whole thickness. Openings cut a band; with
topFollowsRoof the roof
does too, so a band may stand above the wall’s height, in its gable. They overlap neither each
other nor the plinth, whose brick no band enters (a saved model with baseToGround that has one
opens, and the brick is built); in a gap of the plinth a band may stand. A plan draws the wall’s
own material. Absent: no bands.A wall on the boundary with the neighbour;
ownSide is the side that belongs to this building.false: a demolished wall does not join a new wall, and a new wall does not join a demolished
one, when either of the two has false; each keeps its full length, with no trim or mitre at the
other. A demolished wall still joins an existing wall and another demolished wall. Joins across
phases when absent.How a proposed plan draws the holes of this demolished wall’s own demolished openings:
'closed'
draws the wall whole over them, 'open' leaves them open. Open when absent.BRICK, CONCRETE and WOOD draw their hatch where a plan or a section cuts the wall (
brick,
concrete, wood); GLASS, OTHER, a free string and no material draw the solid poché.Key of
BuildingModel.wallTypes. The type then gives the wall its layers, so thickness and
material must be absent.Reverses the layer list of the wall type; the body stays where the location line places it. Off
when absent.
Makes the wall a curtain wall: mullions, transoms and glass or spandrel panels in place of a solid
body. It keeps its joins; it hosts doors only.
positions divisions are distances along the wall
from its first point, like an opening’s offset.BmWallPlinth
The plinth band of a wall (BmWall.plinth).
Where the wall has no plinth, as between brick piers (Revit: segments removed from a wall sweep).
They do not overlap. Absent: the plinth runs the whole length.
BmWallPlinthGap
A stretch of a wall without its plinth: metres along the wall from its first point, over the whole run, like an opening’soffset.
BmWallBand
A band of another material on a wall (BmWall.bands).
Metres from the storey’s level to the bottom of the band; on or above the wall’s foot, which is
the ground with
baseToGround.Metres along the wall from its first point, over the whole run, like an opening’s
offset: where
the band starts. The start of the wall when absent.BmWallType
A shared wall build-up: layers listed from the left face to the right face of the drawing direction.BmWallLayer
One layer of a wall type.A
WallMaterial value or a free string; a free string validates with an unknown-material
warning.An integer from 1 to 5 that overrides the rank the function gives. A LOWER rank wins at a join,
the opposite of a wall’s
priority, where a higher number runs through. A membrane has none.Closes the layer beside each opening and at each free end of the wall, as a cavity closer does. A
membrane has none; a corner or a join is never closed. Not closed when absent.
BmWallLayerClosure
What closes a layer of a wall at an opening or at a free end (BmWallLayer.closure).
True: the plan cut is a box with two diagonals and no fill, in place of the material’s hatch.
BmWallArc
An arc segment of a wall: the circle through its two end points andthrough.
BmCurtainGrid
The grid of a curtain wall; seeCurtainGrid.
BmWallSettings
The settings of a wall: every field except its identity, its axis and its openings.BmStationAlong
Distance along the wall’s saved location line (itspoints) from points[0], accumulated across segments and including the closing segment when closed.
BmOpening
BmUnhostedOpening
An opening placed in the world XZ plane, with no wall cutter or host relationship.BmUnhostedDoor
BmUnhostedWindow
BmUnhostedOpeningPose
Degrees in the world XZ plane: +X is 0, counter-clockwise seen from above (toward −Z) is positive.
Clockwise before version 6.
Former host wall depth, or an authored frame depth;
framePlace is a place in it. Defaults to
0.15 m.BmBuiltInOpeningProfile
Built-in wall aperture profiles.BmOpeningProfile
A wall cut profile.BmOpeningBase
BmOpeningFill
Embedded block assigned to a wall opening.BmDoorLeafAsset
Embedded solid block drawn in the door leaf frame.BmDoor
Embedded block fitted inside the opening; frame, swing and fittings are still the door’s.
Height of a threshold board between the jambs, as deep as the frame. The leaf stands on it and its
head stays at
height. Absent: no board. Not on an OVERHEAD or SECTIONAL door.How the door draws and builds: WOOD, GLASS, DOUBLEDOOR, SLIDING, FOLDING, DOUBLEACTION or OTHER.
See the door types page. Absent means WOOD.
Which way the door swings, facing along the wall from its first point: 1 hinges at the wall-start
jamb and opens to the left face, 2 at the wall-end jamb to the left face, 3 at the wall-start jamb
to the right face, 4 at the wall-end jamb to the right face. Absent means 1.
How far the leaf is open, 0 to 180 degrees: 0 closed, 90 square to the wall, 180 flat against it;
the arc ends at the leaf. Absent means 90.
WOOD, DOUBLEDOOR, DOUBLEACTION, FOLDING, SLIDING and OTHER doors only, but
ribbed: that one is
for OVERHEAD and SECTIONAL doors only. Absent means flush.A flush leaf of a WOOD, DOUBLEDOOR, DOUBLEACTION, FOLDING, SLIDING or OTHER door: glass in it.
A
planked leaf only: width of a vertical board. The leaf takes the nearest whole number of equal
boards. At least 0.02. Absent means 0.1.A
planked leaf only: width of the stiles and rails around the boards. Absent means 0, no frame.A
ribbed leaf only: height of a level rib. The door, or each section of a SECTIONAL door, takes
the nearest whole number of equal ribs. At least 0.02. Absent means 0.1.A lever handle on both faces of each leaf; not on a FOLDING, SLIDING, OVERHEAD or SECTIONAL door.
BmWindow
How the window opens: FIXED, GLASS, WOOD, OTHER, CASEMENT, AWNING or SLIDING. See the window types
page. Absent means CASEMENT.
A bay that stands out of the host wall;
width stays the hole in the wall. Hosted windows only.BmDoorSlidingPanels
The panels of a SLIDING door, of equal width, counted from the hinge-side jamb ofdoorQuadrant.
The panels nearest the face of
doorQuadrant. fixed turns the order of the tracks round and
needs a fixed panel. Absent means sliding.BmDoorLeafLites
A vertical stack of equal glass lites in each leaf of a door.From the middle of the leaf to the middle of the stack, positive toward the lock edge. Absent
means 0.
BmDoorLeverHandle
A lever on a vertical plate, on the two faces of a door leaf.BmDoorCentreHandle
A level bar and a plate below it, half as wide, in the middle of the width of a door.BmDoorPullBar
A vertical pull bar on the two faces of a door leaf.BmOpeningFramePlace
The place of a door or window frame across its wall.Depth of the frame across the wall: at most the wall thickness, at least a door’s leaf.
The wall face that
reveal starts at, facing along the wall. Absent: the frame is centred.BmWindowDivisions
Mullions, transoms and glazing bars of a window.One transom list per column (mullions + 1 entries, wall-start side first), metres above the sill,
ascending, inside the window height. Replaces
transoms; lights then count column by column from
the wall-start side, bottom up.Bars in every light: columns by rows of panes, whole numbers from 1 to 8. Absent means 1 by 1.
joined: the mullions and transoms are one body with the frame, as deep as it, so an elevation
draws one line round each light and no frame line through a member. Absent means separate:
members of their own, which the frame line runs past. Not with a bay.through: the foot of the frame is a member of its own from edge to edge and the jambs stand on
it, so an elevation draws its top line over the full width of the frame. Absent means mitred:
one frame, with an inner line at the foot between the jambs. Not with a bay.BmWindowHinges
Two hinge blocks on the frame or the member at the hinge side of each side-hung light, next to the light and a little proud of both faces of the frame.BmLightOpening
How one light of a window opens.BmWindowLight
One light of a window between its mullions and transoms.BmWindowSill
The sill under a window.The wall face it projects from, as
doorQuadrant names the faces. Absent means right.BmWindowBay
A bay or oriel window that stands out of its host wall.The face it stands out from, as
doorQuadrant names the faces (left is +acrossWall).A
bow bay only: metres along the wall face past each jamb where the bay’s outer line starts, 0
to 1. The facets then run on an arc from that point on one side to that point on the other, out to
projection. Absent means 0: the outer line starts at the jambs.A
bow bay only: the width of each facet’s outer line, metres, wall-start side first, one entry
per facet (as many as facets, 5 when absent), each above 0. The facets run on the same arc as
equal ones would; the widths must fit it, within 1 cm in all, and are then fitted exactly. Widths
that do not fit are refused, with the widths that would. Absent: equal facets.Below the sill: a solid base down to the wall base (
wall) or none, an oriel. Absent means
wall.On a host wall whose base runs to the ground: the ground its base runs down to.
wall: the wall
base, the lowest ground under the whole wall. bay: the lowest ground under the bay’s own
outline. Absent means wall. A bay without a base ignores it.One entry per facet, wall-start side first: that facet’s mullions and transoms, measured on the
facet’s glass. The window’s
divisions then gives only memberWidth and glazingBars as
defaults, and lights count facet by facet. Absent: every facet takes the window’s divisions.Saved id of a bay window on the storey directly above that this bay runs into. The lower bay then
has no roof; a band of its base fills its outline from its head to the upper bay’s sill, and the
upper bay builds no base of its own. Absent: the bay stands alone (today).
With
continuesTo only: the lowest depth metres of the band, up to the upper sill, stand
projection metres out from the bay’s outer faces, as a tile-hung skirt or a string course. Both
above 0. Absent: the band is flush with the bay.BmDoorTypeFields
The saved door fields an opening type may stamp.BmWindowTypeFields
The saved window fields an opening type may stamp.BmOpeningType
Door or window type.BmVoid
A plain unfilled hole —WallOpening.
BmSlabRole
Which class to build.BmSlab
Metres above the storey’s
elevation to the plate’s BOTTOM face (its underside, for a ceiling).BmRoof
Metres above the storey’s
elevation to the wall-plate height at the outline. The eave drops
below it by overhang × tan(pitch).How a slope ends at its eave:
plumb (the default), a vertical face, or square, a face at right
angles to the slope. The top edge of the eave stays, so overhang is measured to it. The outline
is taken as the outer face of the walls: a wall that stands out past it, as one drawn on its
centre line does, is not seen, and the cut or its boards may meet that wall. The eave of a SHED is
its low edge, and edges in line with it: a part of the roof that goes on below that line, or is
set back from it, stays upright.Plan direction of the ridge in degrees from +X, counter-clockwise seen from above. Absent: the
outline’s longest edge. Before version 6 it turned clockwise.
A
RoofMaterial, a key of BuildingModel.materials, or a free string, as on a wall: a free
string validates with an unknown-material warning and builds as OTHER.Key of
BuildingModel.materials for the bare edge of the roof plate, where no board covers it:
the face at the eaves and at the verges. Its pattern and colours draw on that face in elevations.
Absent: plain.One entry per outer-ring edge (edge i =
outerRing[i] → [i+1]); null or a missing entry takes
the default of roofType for that edge.FLAT only. The plate falls toward outer-ring edge
edge: that edge stays at baseOffset, and the
plate rises drop metres at the point of the outline farthest from that edge’s line. Absent:
level.Ids of roofs of the same building, on any storey, that this roof is trimmed against: the part of
this roof inside another roof’s mass goes, and the valley where they meet is a true edge. Below
that roof’s eave plane, the part inside its outline (the wall line of the higher part) and the
overhang of that part go too, up to its wall plate.
Ids of roofs of the same building, on any storey, whose space under their underside removes the
part of this roof inside it: a roof that runs on under a cross roof trimmed to it stops at that
roof’s underside. Each listed roof is sloped. Absent: no roof cuts this one.
BmRoofTrim
The trim along the edges of a roof, in metres.On eave edges;
depth is the height of its vertical face. On an eave cut square the board lies on
the cut face and depth runs along it: past the plate’s thickness it hangs below the underside
along the same line.On gable and half-hip edges; it ends square where its eave is cut square.
Along every eave edge;
size is its width. edges lists the outer-ring edges that take it;
absent, every eave edge does.{
edge: number;
along: number;
diameter?: number;
swanNeck?: boolean;
endsAt?: 'ground' | 'roof-below';
}[]
Each at a point of an eave edge, down to the ground;
diameter defaults to 0.068. With swanNeck: true the pipe leaves the gutter outlet, bends back under the eaves and runs down the wall face;
absent or false, it drops straight from the gutter. endsAt: 'roof-below' stops it on the highest
roof of the building under it, with a socket a little above that roof; absent or ground, it runs
to the ground.A ridge tile along each level ridge: its top is
height above the ridge, and its sides stand
width apart, down to the slopes. width absent: twice height.BmSurfacePattern
A pattern drawn on the seen faces of a material, in elevations and roof plans.BmMaterial
A material ofBuildingModel.materials.
Colour of the lines of the pattern in elevations and sections. Absent: the pen of the pattern.
Printed render grain, with mark size in metres and shade strength from 0 to 1.
Glazing shade from one colour to another. Angle is clockwise from drawing right (default 90°).
BmRooflight
A roof window in the slope of one outer-ring edge of its host roof.BmDormer
A dormer standing on the slope of one outer-ring edge of its host roof.Metres from the foot of the face up to the eaves of the dormer. The foot of the face is where the
face meets the top surface of the host roof slope, not its underside and not the floor, and the
sillHeight of a dormer window counts from it.(Omit<BmWindow, 'kind' | 'offset' | 'framePlace' | 'bay' | 'typeRef' | 'typeTurned' | 'fill' | 'profile'> & {
offset: number;
})[]
The windows in the face;
offset is the metres from the left edge of the face, seen from outside,
to the centre of a window.(Omit<BmDoor, 'kind' | 'offset' | 'framePlace' | 'sill' | 'typeRef' | 'typeTurned' | 'leafAsset' | 'fill' | 'profile'> & {
offset: number;
})[]
The doors in the face;
offset as for windows. A door’s threshold is baseHeight above the
foot of the face. doorQuadrant reads in the face: along is the face from left to right seen from
outside, and its left face is the inside of the loft.{
fascia?: {
depth: number;
thickness?: number;
material?: string;
};
gutter?: {
profile: 'half-round' | 'ogee' | 'square';
size: number;
};
downpipes?: {
side: 'left' | 'right' | 'front';
along: number;
diameter?: number;
endsAt?: 'host-slope' | 'roof-below';
}[];
}
Fascia and gutter along the eaves of its roof (
flat and shed: the front; gable: left and
right; hip: all three) and downpipes from the gutter down to the host roof slope. A downpipe’s
side is its eave seen from outside, along the metres from that eave’s front end, the left end
of the front eave; diameter defaults to 0.068. endsAt: 'roof-below' stops a pipe on the
highest roof of the building under it, the host roof included, with a socket a little above that
roof; absent or host-slope, it ends on the host roof slope.Key of
BuildingModel.materials for the cheeks and the face; its pattern draws on them in
elevations.BmRoofEdge
The kind, pitch and overhang of one outer-ring edge of a pitched roof.eave slopes up from the edge, gable is a vertical end, half-hip a gable hipped drop below
the ridge. Absent: the default of roofType for that edge.Metres the eave ring stands out of this edge, 0 or more: a verge can stand out less than the
eaves. Absent: the roof’s
overhang. Each slope passes through the wall plate, so eaves that
share one overhang drop below the plate by that overhang × tan(pitch); when the eave edges’
overhangs differ, the eaves stay level at the line the roof’s own overhang and pitch set.BmStair
A stair on a storey.Plan rotation in degrees about
origin, counter-clockwise seen from above (+X toward −Z); at 0
the first flight climbs toward +X. Defaults to 0. Before version 6 it turned clockwise.Level-to-level rise. Defaults to the storey’s
height, which is what a stair inside a storey
almost always climbs.Hard riser cap. Defaults to 0.19 m. A
riserHeight above a saved cap is capped, and the build
warns riser-above-cap.WINDER: risers of the straight flight before the winders, a whole number from 0 to the risers
left after the winders. Absent: half of those risers, rounded up. L_SHAPE and U_SHAPE: risers
of the first flight up to and including the landing, a whole number from 1 to one less than all
the risers; the second flight climbs the rest, so the two flights can differ in length. Absent:
half of all the risers, rounded up.U_SHAPE only: the clear gap in metres between the two flights (the well between them), 0 or
more. The half landing spans both flights and the gap. Absent: 0.05.true: the last riser climbs to the arrival floor, which is the top tread, so the final flight
has one tread fewer than its risers and ends at the floor’s edge (Revit’s End with Riser,
Archicad’s Finish with Riser). A stair that ends with a riser has at least two risers, and a
WINDER one at least one riser after the winders. Absent or false: the final flight’s top tread
is drawn at the arrival level.{
aboveCut?: 'dashed' | 'continuous' | 'hidden';
walkline?: boolean;
startMark?: boolean;
arrow?: boolean;
words?: {
up: string;
down: string;
} | 'none';
}
The parts of this stair’s plan symbol that draw whatever the plan view’s
stairSymbol sets:
aboveCut dashed, continuous or hidden, walkline, startMark and arrow true or false,
words nonblank { up, down } or none. Each absent field keeps the view’s setting;
absent keeps the view’s symbol.Height in metres above the stair’s base at which a plan cuts this stair’s symbol, in place of the
plan’s
cutHeightAboveStorey. A positive number. Absent: the plan’s cut.Depth of the stair structure in metres, square to the pitch line under the nosings. With it, each
flight builds as treads on a sloped waist and each landing as a slab flush with it, so the space
under the stair is free. Absent (and no
treadThickness or solid): a waist 0.15 m under the
throat of the steps (the inner corner of a step, square to the pitch line), at most the total
rise.Thickness in metres of the boards of a timber stair, less than the riser height. With it, each
step builds as a tread board under its walking surface and a riser board behind its front edge,
and each landing as a board, with nothing under them. Not set together with
structureDepth.
Absent: the stair builds as structureDepth says.true builds the stair as a solid mass from each tread and landing down to the stair base, as a
stair cast on the ground. Not set together with structureDepth or treadThickness. Absent or
false: the stair builds as structureDepth says.Left and right foot heights of a solid stair in metres from its storey level, looking in the
direction of ascent at the first flight. They define a plane across the stair’s width. Absent, the
foot is level at
baseOffset. The treads remain level in either case.Optional finishes for parts of this stair. The structure finish also supplies the default for the
other parts. A finish references a key in the project material table.
The rule this stair is checked against, as data: its limits on rise, going, 2R+G and pitch. A
stair that breaks one still builds, and validation warns
stair-rule-breach naming the limit, as
Revit’s stair calculator and Archicad’s stair rules do. STAIR_RULE_SETS holds published rule
sets to save here, and a stair with rules is not also warned shallow-tread. Absent: no rule is
checked.BmStairRules
Limits a stair is checked against.BmStairSlabHole
A link from a stair to one hole ring of a slab.BmRailingHost
A railing that follows one side of a stair of the same storey.BmRailingClamps
The clamps that hold a glass pane to its posts.BmRailingBasePlate
The plate a railing post stands on.BmRailingPanel
Glass panes and their fixings below a railing’s top rail.Clear height in metres from the top of the panes to the underside of the top rail, or to
height
(the post tops) when the railing has no top rail. Defaults to 0.Clear height in metres from the base path to the bottom of the panes. Defaults to 0.05 m, and to
0.1 m on spigots, which reach up to the panes.
Clear distance in metres from the side of a pane to the face of its post, or to the end of its bay
when the fixing has no posts. Defaults to 0.01 m.
The width the panes are set out at, in metres: each run of the path is split into the whole number
of equal panes nearest to it (at least one), as Revit spreads a baluster pattern to fit and
Archicad sets a railing’s panel segment length. Absent: no pane wider than 1.2 m.
BmRailing
A railing, as a path in WORLD coordinates rather than relative to the storey — a stair-hosted rail follows the flight nosings and therefore climbs through the storey, so a singlebaseOffset could not describe it.
Rail base path, world coordinates,
[x, y, z] per point. Segments may slope. A railing has
exactly one of path and host.The stair that carries this railing; the rail follows its flight. A railing has exactly one of
path and host.BmColumn
Plan position. A saved column without it is placed at the origin
[0, 0], and validation warns
missing-center.Plan rotation in degrees about
center, counter-clockwise seen from above (+X toward −Z); at 0
width runs along X. Defaults to 0. Before version 6 it turned clockwise.BmBeam
[x, yOffset, z] — y is STOREY-RELATIVE, unlike BeamOptions.start which is world.BmSpace
BmChimney
A chimney stack with an optional breast inside the house and pots on top.The wider part inside the house, from the base up
height metres.Default
{ count: 1, diameter: 0.2, height: 0.6 }; a count of 0 draws none.{
kind: 'oversailing' | 'slab';
projection: number;
depth: number;
below?: number;
courses?: number;
}
The cap.
oversailing: a band depth deep that stands projection out of every face, its top
below metres under the stack top (default 0); courses (1 to 3, default 1) stacks that many
bands, each depth deep and projection further out than the one under it. slab: a capping
slab depth thick on the stack top, projection past every face; the pots stand on it. Absent:
no cap.BmSoilStack
A soil and vent stack: a vertical pipe beside a wall face with an optional vent terminal.Plan centre of the pipe, world XZ. Put it a radius plus the bracket gap off the wall face.
Absent: an open end.
cage: a wire balloon; cowl: a capped vent.BmAssetRef
BmAssetInstance
position.y is STOREY-RELATIVE; the compiler adds the storey elevation.Scale per axis, one size on all three:
|x| = |y| = |z|. X or Z may be negative to mirror the
asset; Y must be positive.Outside size in metres along the asset’s own axes; each axis needs a stretch zone in the asset.
({
kind: 'polyline';
points: PointXZ[];
} | {
kind: 'arc';
center: PointXZ;
radius: number;
startAngle: number;
sweepAngle: number;
})[]
Instance-only plan strokes in local metres. Arc angles are in radians.
BmIssue
JSON path into the document, e.g.
buildings[0].storeys[0].walls[1].openings[2].offset.BmClash
Two elements that clash.BmOpeningFit
Where a hosted opening fits on its wall, in offsets along the saved centreline of that wall.The range of fitting offsets on its wall segment that holds
nearestOffset; null when none.The fitting offset nearest to
offset, or null when the opening fits nowhere there.Why it does not fit;
t-junction alone means it is over the seam of a T stem.The length in metres of the longest net run of its wall: the widest opening it can cut.
The widest
width of this opening that the longest net run takes: the run less the frame on each
side, since a door’s or a window’s frame is cut into its wall with it.BmValidationResult
BmCuboidBase
The package does not export this type by name.BmRectangleBase
The package does not export this type by name.BmFramedOpening
The package does not export this type by name.Related
AreaKindBeamShapeBmRampCeilingMaterialColumnMaterialColumnShapeCurtainGridDoorTypeDrawingHatchNameFloorMaterialGeoAnchorLocationLineLotLineClassPointXZPolygonProfilePropertySetsRoofMaterialRoofTypeSlabMaterialSlabOptionsStairFinishesStairLayoutStairTurnDirectionVec3WallEndClosuresWallEndJoinWallJoinOverrideWallLayerFunctionWallMaterialWallNetworkOptionsWallOpeningFitReasonWindowTypeZoningRuleSet