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?
Asked
Active
Viewed 258 times
1 Answers
0
The best place to start would be the below code samples:
- https://forge.autodesk.com/blog/adding-custom-properties-property-panel
- https://github.com/yiskang/forge-au-sample/tree/master/properties
- https://github.com/Autodesk-Forge/forge-rcdb.nodejs //interaction with custom data source and many data centric plugins
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