Before you start
You have a session and you applied one edit or more.Add the two actions
Keep your buttons up to date
subscribe calls your function after each edit, undo or redo. It returns a function that stops the calls.
Rules
- A new edit clears the redo list.
undoandredoreturn the new revision number, ornullwhen there is nothing to do.- The history is not saved in the project file. A session that you open from a file starts with an empty history.
- After an undo, get elements again from
session.currentBuildby their ids. A changed element can be a new object, and Floorkit then disposes the old object. A changed wall, and a door, a window or a hole on a wall, can also stay the same object with new geometry.
Next
Save and reopen
Keep the building between visits.
BuildingSession API
See each member of a session.