forge-digital-twin icon indicating copy to clipboard operation
forge-digital-twin copied to clipboard

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

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:
      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:
          {
              "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

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

Features

  • Heatmaps (using the viewer's theming color API)
  • Annotations
  • Animations

Support

For support, please contact [email protected].

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