extract files from a very large zip file, on bim360 Also, detects the difference between .RVT and .ZIP
deployed to http://bim360-zip-extract.herokuapp.com/
Walkthrough video (YouTube): https://youtu.be/02ChjbwLjUY
Instructions:
- GetBIM360access-token fromBIM360( use the debug tool, network console, type ‘manifest’)
- Copy/Paste Access-token into the Access-token box
- In a separate browser, Go to yourBIM360source folder
- Copy/Paste theBIM360source URL into the ‘Source' box
- Now, navigateBIM360to your destination Folder (and Project) and Copy/Paste theBIM360URL into the ‘Destination' box
- Click the blue ‘login’ button, wait, and you should see the Tree-list appear
- Now, “Double-click" on the Revit file (that is disguised as azip), in the tree-view. It should ‘expand’
- Now, “Double-click” on the sub-file, you want to transfer
- Click the blue “transfer” button and wait for the file to appear on the right “destination” Tree-list
endpoint: bim//list
- INPUT: project, folder, token
- OUTPUT: list of files (json format)
- Example: http://localhost:3000/bim/list?project=b.b4589cd9-ef9f-44a0-bea9-cc0dbc7f4544&folder=co.HBY2HScmSQiJkdsS9Qqm9Q&token=eyJhbGciOiJIUzI1NiIsImt.....
note: make sure that project starts with a b. .. ie. b4589cd9-ef9f-44a0-bea9-cc0dbc7f4544 becomes b.b4589cd9-ef9f-44a0-bea9-cc0dbc7f4544
endpoint: /listZipContents
- INPUT: zipURL, size
- OUTPUT: directory listing of zip file
- Example: listZipContents?size=4561790847&zipURL=https://developer.api.autodesk.com/oss/v2/buckets/wip.dm.prod/objects/5ab93dac-fdc2-4ffc-a14d-d93f2e02591f.rvt
Reference: The structure of a PkZIP
endpoint: /transfer
- INPUT: filename
- OUTPUT: was transfer successful? (json format)
- Example: /transfer?filename=master.rvt
- Optional INPUT: destProject, destFolder (specify different destination "project & folder")
endpoint: /status
- INPUT: filename
- OUTPUT: get progress of transfer (json format)
- Example: /status?filename=master.rvt
DEMO: https://bim360-zip-extract.herokuapp.com
...