Autodesk Forge sample application demonstrating features relevant to the area of industrial construction.
Master branch is deployed to https://forge-industrial-construction.autodesk.io.
- Node.js v10+
- Forge application credentials
- MongoDB database
- for example, using the free tier of MongoDB Atlas
- or running MongoDB locally: https://docs.mongodb.com/manual/installation
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.
- 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>" } }
- for example, on macOS:
- go to http://localhost:3000
This sample is licensed under the terms of the MIT License.
Petr Broz (@ipetrbroz), Forge Partner Development Group