scaffoldLayout

fun Model.scaffoldLayout(title: String = name, width: Double = 1000.0, height: Double = 700.0, originX: Double = 80.0, originY: Double = 80.0, columnGap: Double = 240.0, rowGap: Double = 70.0): AnimationLayout(source)

Builds a starter AnimationLayout for this model with the resources, queues and stations auto-placed on a simple grid (8K.2c), so authoring begins from a populated, self-consistent file instead of a blank one. Responses and counters are deliberately not placed — a model can expose dozens, which overwhelm the starter layout; the author adds the stats they want (value/bar/plot displays). Movable/transport resources are placed as movableResource(...) glyphs (not static boxes), and when the model moves them over a DistancesModel its named locations are placed as station anchors (via placeStations) so the transporters animate between them. The placement is deliberately rough — the author then drags elements into their final positions. No objectClass styling is emitted (entity/agent types are runtime; the renderer falls back to defaults). By construction scaffoldLayout().validateAgainst(model).isValid.