0

I'm attempting to create an instance of the Forge-viewer API to reference an outside database (Homemade, not bim360 or Fusion) as the Properties of an object selected. (i.e. the database parameters fill-in the properties window) However, I'm unable to find a method. What do you recommend?

1 Answers1

0

The best place to start would be the below code samples:

Basically you will need to customize the model property panel and feed in your own data source by extending Autodesk.Viewing.Extensions.ViewerPropertyPanel and setProperties/setNodeProperties ...

Bryan Huang
  • 5,247
  • 2
  • 15
  • 20
  • Thank you for these links! Unfortunately i'm not able to get the first link to work correctly after following the steps. The ForgeViewer.js has a different line to replace than the last step is asking me to replace it with and I think that might be the issue? – Logan Rollin Aug 19 '19 at 22:55
  • If you are on v7 then the Viewer Application has been deprecated - see [here](http://learnforge.autodesk.io/#/viewer/extensions/skeleton) to register and load extensions – Bryan Huang Aug 20 '19 at 02:49
  • Now that I am able to fill in my own data, how can i script or reference an outside data table? (i.e. Excel Spreadsheet) – Logan Rollin Aug 22 '19 at 21:43
  • You can load spreadsheets directly in the browser using [js-xlsx](https://github.com/SheetJS/js-xlsx) - there are quite a few options if you look them up on Google/Github etc – Bryan Huang Aug 26 '19 at 03:34