How properties.db is used in Forge Viewer?

狂风中的少年 提交于 2019-12-02 07:14:26

问题


The sqlite database file properties.db is usually the biggest file in the output from https://extract.autodesk.io/.

What is it used for in Forge Viewer, and if it's not used, why is it available in the ZIP file?


回答1:


The reason this example is copying both is that the purpose of the sample is to demo how to extract the 'bubble' from the Autodesk server. The Design File' properties are extracted in 2 formats: aka json (json.gz) and sqlLite (sdb/db). The Autodesk Viewer only uses the json format, but other systems may prefer using sqlLite. The json approach makes it easier when you code executes in client browsers. It is fairly easier to modify the sample to exclude the sqlLite database if you are not interested to get this file. I can point you which code you need to modify if that's something you want to do.




回答2:


That file contains the components properties as a sqlite database, which are also contained in objects_xxx.json.gz. The viewer only uses the json format.

That article shows how you can easily run the extraction code your your side, it doesn't extract the .db file:

Forge SVF Extractor in Node.js



来源:https://stackoverflow.com/questions/46751920/how-properties-db-is-used-in-forge-viewer

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!