A Python Web Application using Pyramid and Autodesk Forge Web APIs
* Python 3.x
* MongoDB
The server expect a mongoDB database named forge-rcdb running on localhost:27017
You can change those settings in development.ini:
[app:main]
# ...
mongo_uri = mongodb://localhost:27017/forge-rcdb
Populate your database with a collection named "gallery.models" with at least one model pointing to a translated URN.
{
"_id" : ObjectId("59f9aeedbcd28f9df393f760"),
"name" : "Engine",
"model" : {
"urn" : "dXhaghj....(urn of translated model from Forge)"
}
}
See Prepare a File for the Viewer
-
define following system variables initialized with your Forge credentials:
FORGE_DEV_CLIENT_ID
FORGE_DEV_CLIENT_SECRET
-
cd directory_containing_this_project
-
python -m venv .
-
./bin/pip install -e .
-
./bin/pserve development.ini --reload
Coming soon ...
Written by Philippe Leefsma
Forge Partner Development - http://forge.autodesk.com