HERMOSILLOAutodesk DevCon 2027 · Class proposal

View the code on GitHub

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

  1. 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–367
    import 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() - t
    Same-author links: each action joins that person’s previous one.activityGraphData.ts · lines 231–247
    if (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);
  2. 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–62
    for (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);  }
  3. 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

  1. Autodesk FormaEvery project's activity log
  2. APS Data ConnectorExtractions and project records: 5.34 million events
  3. PaCMAP embeddingsEach event becomes a vector, placed in 2D and 3D
  4. Lasso and breakdownWhich actions, roles and projects make a cluster
  5. The access standardA person verifies the finding or the exception

Screenshots

The 2D activity map: millions of dots in a disc, mostly blue with orange regions around the edge, colored by module.
Fig. 1The 2D map. One dot is one recorded action; similar actions land close together.
The activity map grouped by action, with labelled clusters such as View Entity, Upload Entity, Issue Create and Download Entity, joined by colored same-author links.
Fig. 2Grouped by action. The lines join actions by the same person.
A lasso selection of 521,702 events with its breakdown panel: by module, Data Management 97 percent; by access level, project admin 47 percent and member 43 percent, with unknowns counted.
Fig. 3A lasso selection: 521,702 of the 2.67 million events the map drew in this view, broken down by module and access level, with unknowns kept visible.

What's in this repository

PathWhat it is
lib/accActivity ingest: the APS Data Connector client and the activity-log client, with tests (TypeScript).
scriptsThe embedding job: hashed event features and PaCMAP in 2D and 3D, with tests (Python).
lib/serverBuilds the binary payload the map draws.
server/routersServer queries for one event's record and project names (tRPC).
app/api/activity-universe/payloadThe HTTP route that streams the payload to the browser.
app/(dashboard)/users/access-analysis/activityThe 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.

References

  1. Autodesk Platform ServicesACC Data Connector field guide 
  2. Autodesk Platform ServicesACC Data Connector tutorials 
  3. Autodesk Platform ServicesData Connector API: POST requests 
  4. Autodesk Platform ServicesAuthentication API (OAuth 2.0) developer’s guide 
  5. Journal of Machine Learning Research, 2021Understanding How Dimension Reduction Tools Work: An Empirical Approach to Deciphering t-SNE, UMAP, TriMap, and PaCMAP for Data Visualization 
  6. GitHubPaCMAP: the reference implementation