revit-apirevitautodesk-forgeforgerevit-2015

how use viewer-javascript-extract.spreadsheet


I have used model derivative API for geometry and data extraction. Now I want to extract model information in excel sheet. I read the post https://github.com/Autodesk-Forge/viewer-javascript-extract.spreadsheet but I have many questions. Like how to add reference to the ForgeXLS file? And where? What is Forgexlsx? How to call download method? Please explain it in detail. Similarly on another post https://github.com/Autodesk-Forge/model.derivative-csharp-context.menu. I haveID and secret and changed it web.configure. But what next? How to compile the solution?


Solution

  • The Extract spreadsheet sample is pure JavaScript. All the required files are on the github repo. You need the ForgeXLS that implements the extraction process, the other files used are on the Libraries folder.

    The Context menu sample is bit more complex. As per readme setup, you'll need to compile the whole .NET solution, register the CSShellExtContextMenuHandler.dll on the regasm, which triggers the Translator.exe. You'll need to deploy the TranslatorServer ASP.NET project. Not sure how familiar you are with .NET projects (compile, deployment, etc).