Skip to content

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

License

Notifications You must be signed in to change notification settings

petrbroz/forge-digital-twin

 
 

Repository files navigation

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

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

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

Features

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

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

About

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

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 78.8%
  • Pug 18.7%
  • CSS 2.5%