HERMOSILLOAutodesk DevCon 2027 · Class proposal

View the code on GitHub

Forma Sequence · DevCon 2027 class evidence

Build Your Construction Sequence in Revit. Play It Back with APS.

We wanted our planners to press play and watch an entire warehouse go up in the order they drew in Revit.

Luis Eduardo Cortés González, Hermosillo

Class film, 1 min 59 s: write the order as Revit Marks, play two published models in APS Viewer, then the same sequence realistic in the browser.

About the class

We’ll show how our numbering tool writes the planned order into Revit, then how the APS Viewer SDK brings both published models together. Three.js renders the same sequence as a realistic 3D view you can pause, reverse and inspect. Today, the viewer places untagged elements by construction stage, elevation and bay. Our next step is to use AI to predict when those elements belong in the build, using the tagged elements as examples.

What the class teaches

  1. Write the planned sequence into Revit instance Marks and use the APS Viewer SDK to play two published models together.

    Proven in code

    Writes each element’s place in the sequence into its instance Mark, in one Revit transaction.NumberingScene.cs · lines 100–117
    using var t = new Transaction(doc, "Number by Line");t.Start();progress?.Plan(new PhaseEstimate("numbering.save", numbered.Count));progress?.Begin(new ProgressStage("Writing Marks", Total: numbered.Count, EstimateKey: "numbering.write", EstimateUnits: numbered.Count));foreach (var n in numbered){    if (progress?.CancelRequested == true) { t.RollBack(); throw new ProgressCancelledException(); }    var e = doc.GetElement(new ElementId(n.Id));    var p = e == null ? null : MarkParameter(e);    string? error = p == null ? "No Mark parameter" : p.IsReadOnly ? "Mark is read-only" : null;    if (error == null)    {        try { if (!p!.Set(n.Mark)) error = "Revit refused the value"; }        catch (Exception ex) { error = ex.Message; }    }    results.Add(new MarkWrite(n.Id, n.Category, n.Mark, error));    progress?.Report(results.Count);}
  2. Pause and reverse the same construction step in APS Viewer and the realistic Three.js view to inspect what appears.

    Proven in code

    Seeks forward or backward: shows or hides whole steps in the APS Viewer, in batches.sequence.js · lines 80–96
    export function seek(viewer, model, root, steps, previous, next) {  if (previous === null) {    viewer.clearSelection();    viewer.isolate([], model);    viewer.hide(root, model);    previous = 0;  }  const action = next >= previous ? 'show' : 'hide';  let batch = [];  for (let i = Math.min(previous, next); i < Math.max(previous, next); i++) {    for (const id of steps[i].ids) {      batch.push(id);      if (batch.length === 2000) { viewer[action](batch, model); batch = []; }    }  }  if (batch.length) viewer[action](batch, model);}
  3. Design a test for AI-predicted steps by hiding known Revit Marks and comparing predictions with the planner’s order.

    Next step: proposed test, no code yet

    The class presents this as the next step. The film shows the proposed test as an illustration; there are no prediction results yet.

How it fits together

  1. RevitThe numbering tool writes the order as instance Marks
  2. Autodesk FormaArchitecture and structure, published as two models
  3. APS Data ManagementFinds each model's published viewable
  4. APS Viewer SDKLines both models up and reads every Mark
  5. Three.jsThe same sequence, realistic, pause and reverse

Screenshots

Diagram from the class film: Revit, where the planner writes the build order as instance Marks; Autodesk Forma, with architecture and structure published as two models; the APS Viewer SDK, which lines both models up and reads every Mark; and Press play, where elements appear step by step in Mark order.
Fig. 1From Revit Marks to a building you can play.
Two federated Revit models in APS Viewer, partway through the construction sequence: the main building is up while foundations and columns elsewhere on the site are still appearing. The playback bar shows the step playing now.
Fig. 2APS Viewer, partway through the sequence. Each step is one Mark.
Card from the class film titled Hide Marks the planner wrote. Predict them. Compare. A row of Marks 0401 to 0410, with three of them hidden and predicted, drawn as an illustration.
Fig. 3The next step, as proposed: hide known Marks, predict them, compare with the planner's order. No results yet.

What's in this repository

PathWhat it is
revit-numberingFrom the Revit add-in: the numbering command that writes instance Marks, its ordering core and its unit tests (C#).
sequence-viewerThe sequence viewer (Node and browser JavaScript): a local server for ACC lookups and tokens, the APS Viewer playback, the Three.js realistic view, and tests.

This repository is evidence for a class proposal, not a product. It holds a curated selection of the real source files behind the class. Identifiers are read from environment variables such as ACC_PROJECT_ID or replaced with placeholders, and credentials are read from the environment.