Skip to content

petrbroz/forge-industrial-construction

Repository files navigation

Forge Use Case Demo: Industrial Construction

Platforms Node.js License

Viewer Data-Management Model-Derivative

Autodesk Forge sample application demonstrating features relevant to the area of industrial construction.

Thumbnail

Live demo

Master branch is deployed to https://forge-industrial-construction.autodesk.io.

Development

Prerequisites

Data preparation

The demo requires a Navisworks model that is split by area and discipline, and individual NWD files in a Forge bucket to be named in the following format:

<facility>-<area>-<discipline>.nwd

Where facility can be an arbitrary string, area is a number, and discipline is an arbitrary string as well. An example of such filename would be:

austin-123-structural.nwd

If you'd like to use a different naming of files or different extensions, you can modify the parsing logic in https://github.com/petrbroz/forge-industrial-construction/blob/develop/routes/data.js#L64.

Setup & Running

  • 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_BUCKET=<bucket-name>
      export GOOGLE_MAPS_API_KEY=<api-key>
      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_BUCKET": "<bucket-name>",
                  "GOOGLE_MAPS_API_KEY": "<api-key>",
                  "MONGODB_URL": "<mongodb-connection-string>"
              }
          }
  • go to http://localhost:3000

Deployment

Deploy

License

This sample is licensed under the terms of the MIT License.

Written by

Petr Broz (@ipetrbroz), Forge Partner Development Group

About

Autodesk Forge application demonstrating possible usage in industrial construction.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published