Forma Spatial Graph · DevCon 2027 class evidence
Spot Red Flags in Autodesk Forma with 2D and 3D Activity Embeddings
Your folder standard says who can grant access. How do you find the exceptions across an enterprise when every project keeps its own activity log?
Luis Eduardo Cortés González, Hermosillo
Class film, 2 min 1 s: read the activity map, lasso a behavior, then verify the exception against the standard.
About the class
At Hermosillo, we mapped 5.34 million recorded Autodesk Forma actions across our projects. Data Connector extracts and project records supply the events. We turn each event into a vector using details such as action, folder and author role. PaCMAP places those vectors in 2D or 3D, and links connect actions by the same person. We’ll lasso a cluster, see which roles and projects account for it, then open a record and check it against the access standard. We’ll also share what pretraining and fine-tuning taught us in a related test of which roles typically receive access to similar folders.
What the class teaches
-
Read a 2D or 3D activity embedding and use same-author links to trace related actions across a selection.
Proven in code
PaCMAP places every event’s feature vector in 2D or 3D. compute_activity_embeddings.py· lines 361–367import pacmap def fit() -> tuple[np.ndarray, float]: t = time.perf_counter() emb = pacmap.PaCMAP(n_components=args.components, random_state=RANDOM_STATE).fit_transform(x) return np.asarray(emb, dtype=np.float64), time.perf_counter() - tSame-author links: each action joins that person’s previous one. activityGraphData.ts· lines 231–247if (maxLinks <= 0 || authorCount <= 1) return new Float32Array(0);const previous = new Int32Array(authorCount).fill(-1);const out = new Float32Array(Math.min(maxLinks, renderedFullIndices.length) * 2);let links = 0; for (let rendered = 0; rendered < renderedFullIndices.length && links < maxLinks; rendered++) { const author = authorId[renderedFullIndices[rendered]]; if (author === 0 || author >= authorCount) continue; const prior = previous[author]; if (prior >= 0) { out[links * 2] = prior; out[links * 2 + 1] = rendered; links += 1; } previous[author] = rendered;}return out.slice(0, links * 2);dcIngest.tslib/acc/Pulls the activity records from the APS Data Connector API (create extraction requests, wait for the jobs, download and load the data).accdsActivity.tslib/acc/Reads each project's activity log from Autodesk's activity service in 30-day windows, with paging and parallel requests.compute_activity_embeddings.pyscripts/Turns every event into a hashed one-hot vector (action, folder, author role, company, month and more) and places all of them in 2D and 3D with PaCMAP.activityUniversePayload.tslib/server/Describes and reads the binary payload of positioned events that the map streams to the browser.activityGraphData.tsapp/(dashboard)/users/access-analysis/activity/Builds the same-author links: bounded chains that join each person's actions.ActivityUniverse2D.tsxapp/(dashboard)/users/access-analysis/activity/Draws the 2D map and its links on the GPU.ActivityUniverse3D.tsxapp/(dashboard)/users/access-analysis/activity/Draws the same events in 3D.
-
Lasso a cluster and compare its action, role and project breakdowns to isolate a pattern worth auditing.
Proven in code
Counts every field across the lasso selection, keeping unknowns visible. activitySelectionBreakdown.ts· lines 51–62for (const dim of ACTIVITY_DIMENSIONS) { const col = columns[dim.column]; if (!col) continue; const labels = dimensionLabels(dim, dicts, projectNames); const counts = new Map<number, number>(); let covered = 0; for (let k = 0; k < total; k++) { const id = col[fullIndices[k]] ?? 0; if (!dim.hasSentinel || id !== 0) covered += 1; counts.set(id, (counts.get(id) ?? 0) + 1); }activitySelectionBreakdown.tsapp/(dashboard)/users/access-analysis/activity/Counts a lasso selection by every field the payload carries, such as action, module, author role, access level, project and author, with no extra requests.activitySelectionBreakdown.test.tsapp/(dashboard)/users/access-analysis/activity/Tests for the breakdown counts.activity-universe.tsserver/routers/Server queries behind the panel: one event's full record and the project names for a selection.
-
Check a flagged event against a project standard and document the evidence for a finding or an allowed exception.
Shown in the film
The film opens one flagged event (who, what, when, which project) and walks the review against the folder standard. The review is done by a person and has no code in this repository.
How it fits together
- Autodesk FormaEvery project's activity log
- APS Data ConnectorExtractions and project records: 5.34 million events
- PaCMAP embeddingsEach event becomes a vector, placed in 2D and 3D
- Lasso and breakdownWhich actions, roles and projects make a cluster
- The access standardA person verifies the finding or the exception
Screenshots



What's in this repository
| Path | What it is |
|---|---|
lib/acc | Activity ingest: the APS Data Connector client and the activity-log client, with tests (TypeScript). |
scripts | The embedding job: hashed event features and PaCMAP in 2D and 3D, with tests (Python). |
lib/server | Builds the binary payload the map draws. |
server/routers | Server queries for one event's record and project names (tRPC). |
app/api/activity-universe/payload | The HTTP route that streams the payload to the browser. |
app/(dashboard)/users/access-analysis/activity | The 2D and 3D maps, same-author links and the lasso breakdown (React and WebGL). |
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.