virtualenv -p python3.7 venv
. venv/bin/activate
pip install -r requirements.txt
npm i
- Create a new app at
forge.autodesk.com
and note the Client ID and Client Secret
- Add a Revit model to the
app/forge
directory - Update
model_uploader.json
with your credentials and the revit project name - Make
app/forge
your current directory and runpython forge_model_uploader.py -b -j model_uploader.json
Note: you don't need the-b
if you already have a bucket specified inmodel_uploader.json
- Record the resulting URN of the form:
dXJuOm...
- In
routes.py
replace '[MODEL_ID]' with the URN from above - Locally run your web server:
flask run
- Navigating in your browser to
http://127.0.0.1:5000/
you should now see your project
window.dispatchEvent(new CustomEvent('configuratorDataUpdate', {
'detail': {
'configurationMapping': {
'0': 'dde5760a-b1e9-49b6-b44b-54a631298046-00047f32',
'1': 'dde5760a-b1e9-49b6-b44b-54a631298046-00047f59'
},
'controls': [
{
'name': 'Hanger Width',
'options': [
{
'value': '0',
'text': '12"',
},
{
'value': '1',
'text': '36"'
}
]
}
]
}
}));