NOTE: This sample has been move into maintance mode. We have 2 samples that create the similar workflow you are looking for.
You can find the github repositories for either sample linked in the top right.
DEPRECATED, please use https://github.com/Autodesk-Forge/bim360appstore-viewer-nodejs-visual.reports
JavaScriptMIT