Skip to main content

Import

migratePlanRotations

Move a BuildingModel saved before version 6 to version 6, keeping every column, stair, roof and free door or window where the earlier version drew it.
Throws: {BmEditError} kernel-unavailable for a model before version 5 with a turn and a hosted opening, when the kernel is not initialized.

CCW_ROTATIONS_VERSION

The first BuildingModel version whose plan turns are all counter-clockwise seen from above.

migrateHostedOpeningStations

Move a BuildingModel saved before version 5 to version 5, keeping every hosted opening where the earlier version drew it.

SAVED_START_STATIONS_VERSION

The first BuildingModel version whose hosted offsets count from the saved start of the wall.

Types

OpeningStationMigration

BuildingModel
required
The model at version 5 when an offset was rewritten; otherwise the input itself, whose openings stand in the same place by either rule, so it keeps its version.
MigratedOpeningStation[]
required

MigratedOpeningStation

One hosted opening whose saved offset a migration rewrote.
string
required
$.buildings[b].storeys[s].walls[w].openings[o]
string
required
string
required
number
required
The offset as saved by the earlier version.
number
required
The offset that keeps the opening where the earlier version drew it.
boolean
required
The place it was drawn at lies off its segment’s saved run (inside the wall it joins), so the offset is held to the end of the segment: the opening moves by the overhang.
Last modified on November 28, 2026