MCPcopy Index your code
hub / github.com/Autodesk-Forge/forge-digital-twin

github.com/Autodesk-Forge/forge-digital-twin @v1.3.3

Chat with this repo
repository ↗ · DeepWiki ↗ · release v1.3.3 ↗ · + Follow
81 symbols 139 edges 16 files 0 documented · 0%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Forge Digital Twin Demo

Platforms Node.js License

Viewer Data-Management OSS Model-Derivative

Intermediate

Autodesk Forge application demonstrating various use cases in manufacturing, specifically in context of digital twins.

Screenshot

Live demo

Master branch is deployed to http://forge-digital-twin.autodesk.io.

Development

Prerequisites

  • Node.js v10+
  • Forge application credentials, and an urn of a model processed with Model Derivative APIs
  • MongoDB database
  • for example, use the free tier of MongoDB Atlas
  • or run it locally: https://docs.mongodb.com/manual/installation

Setup

  • clone this repository
  • install dependencies: npm install
  • run server with all the required env. variables
  • for example, on macOS: bash export FORGE_CLIENT_ID=<client-id> export FORGE_CLIENT_SECRET=<client-secret> export FORGE_MODEL_URN=<model-urn> export MONGODB_URL=<mongodb-connection-string> npm start
  • or, when using Visual Studio Code, add this configuration to your .vscode/launch.json: json { "type": "node", "request": "launch", "name": "Launch Express Server", "program": "${workspaceFolder}/server.js", "env": { "FORGE_CLIENT_ID": "<client-id>", "FORGE_CLIENT_SECRET": "<client-secret>", "FORGE_MODEL_URN": "<model-urn>", "MONGODB_URL": "<mongodb-connection-string>" } }
  • go to http://localhost:3000

Bootstrap theme

The project uses a custom Bootstrap theme. In order to customize it:

  • modify tools/bootstrap-theme/custom.scss
  • run npm build:client to update public/stylesheets/bootstrap.css
  • commit the new version of the CSS file

Deployment

Deploy

Sample data

  • The jet engine model used in the live demo can be obtained from https://knowledge.autodesk.com/sites/default/files/file_downloads/Jet_Engine_Model.zip.

  • Create an archive of the Workspace folder and translate the archive into SVF with _Jet Engine Model.iam as the root file (see tutorial here and remember to specify the output format as SVF)

  • Once completed, feed the URN as environment variable and run the sample

Support

For support, please contact forge.help@autodesk.com.

License

This sample is licensed under the terms of the MIT License. Please refer to LICENSE for more details.

Written by

Petr Broz (@ipetrbroz), Varun Patil, Forge Partner Development Group

Core symbols most depended-on inside this repo

updatePurchases
called by 3
public/scripts/procurement.js
updateRevisions
called by 3
public/scripts/maintenance.js
updateIssues
called by 3
public/scripts/maintenance.js
initializeViewerApp
called by 3
public/scripts/maintenance.js
updateTemperatureAlertForm
called by 3
public/scripts/performance.js
nextFloat
called by 3
public/scripts/main.js
findOrCreatePart
called by 3
routes/maintenance.js
updatePurchasesTable
called by 2
public/scripts/procurement.js

Shape

Function 43
Method 26
Class 12

Languages

TypeScript100%

Modules by API surface

public/scripts/maintenance.js13 symbols
public/scripts/main.js11 symbols
public/scripts/extensions/issues.js11 symbols
public/scripts/extensions/heatmap.js11 symbols
public/scripts/performance.js8 symbols
public/scripts/extensions/animation.js8 symbols
public/scripts/procurement.js6 symbols
model/validation.js5 symbols
routes/maintenance.js4 symbols
model/db.js3 symbols
routes/procurement.js1 symbols

Datastores touched

IssueCollection · 1 repos
PartCollection · 1 repos
PurchaseCollection · 1 repos
ReviewCollection · 1 repos
(mongodb)Database · 1 repos

For agents

$ claude mcp add forge-digital-twin \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page