通过数据管理API列出BIM360中的模型文件 [英] Listing model files in BIM360 through data management API
问题描述
我需要在Forge Viewer中显示存储在BIM360中的模型.因此,我想列出项目中包含的所有模型.
I have a need to display models stored in BIM360 in the Forge Viewer. For this reason I'd like to list all models that are contained in a project.
I was looking at fetching them using the search API. Is this a reasonable way to do it? I guess the only way to identify model files is to use attributes.fileType in the filter? And then look at the relationships.derivatives data. Or is there some other way to search for models?
推荐答案
不幸的是,Search API当前不支持您的请求.以我的经验,从包含此属性的API响应中手动提取 relationships.derivatives
是唯一的方法,例如
Unfortunately, your request is not supported by the Search API currently. With my experience, extracting relationships.derivatives
out is the only way manually from the API responses that contain this attribute e.g.
- GET projects/:project_id/folders/:folder_id/contents
- GET projects/:project_id/items/:item_id/tip
- GET projects/:project_id/items/:item_id/versions
这篇关于通过数据管理API列出BIM360中的模型文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!