我目前正在使用 Forge RCDB 和 MongoDB,但是数据库中没有数据并且成本 Breaddown,总是显示加载

I am currently working with Forge RCDB and MongoDB, but there is no data in Database and cost Breaddown, always show loading

我目前正在使用 Forge RCDB 和 MongoDB,但数据库中没有数据和成本 Breaddown,总是显示加载

确保您已按照 README 将示例数据正确导入 MongoDB 并使用与 RCDB 兼容的模型:

1/ You need to translate at least one model using your own Forge credentials, so it can be loaded by your app. In order to do that take a look at the step-by-step tutorial from the Model Derivative API to understand exactly what this is about. If you want to skip that manual process you can use one of our live sample: https://models.autodesk.io. This app lets you put your credentials and translate a model on your behalf. Another option would be to deploy to heroku the Forge boiler plate sample #5. Make sure you deploy Project #5. This set up is more straightforward since it doesn't require any Cloud database or pre-translated models. It will let you upload, translate and manage further models as well.

Once you have translated at least one model, take note of its URN, that's the base64 encoded objectId. You also need a model which has some "Material" properties to be compatible with forge-rcdb because it is expecting components with that property. You can use Engine.dwf placed in the resource/models directory of this project.

我自己试了一下,效果很好: