I've been testing the APS IoT extension code with one Revit model below. I have used both the APS plugin on VScode and this site (https://oss-manager.autodesk.io) to upload and translate my model. With the same Revit file, I got 2 different kinds of models below with different URNs and did.
The weird thing is that I've managed to get the heatmaps and sensors to work in the second model ( the second picture), but not with the the first model (first picture). Recently, I accidentally deleted the second model (the working one) from my buckets. Now, whenever I upload my model with the above bucket tools, I always end up getting the first model which doesn't show any heatmaps.
I'd like to know if there is any way I can translate my model so that it will give me back the second model. Or how can I get the first model to work with heatmaps? I guess it might be something related to the model derivative or the model translation part.
Thank you.
https://github.com/autodesk-platform-services/aps-iot-extensions-demo


Thanks for the test model. Everything looks fine on my side. Please check my email for the snapshots.
Here is my code for producing sensor data in
services/iot.mocked.js:Aftward, you must adjust the sensor data in the
getSamplesfunction inservices/iot.mocked.jsto make the number consistent with the sensor amount like belowRegarding the second model, if you used the same
APS_MODEL_VIEWfrom the first model, then your view would be incorrect. The master views are generated during the Model Derivative translation, so their guid or viewable id will be different. You cannot reuse the same value and set it toAPS_MODEL_VIEWinpublic/config.js. After retranslating the model, you must find the correct guid for the master view in the model manifest again.To prevent this issue, we could give
APS_MODEL_VIEWan empty value and then modifypublic/viewer.js