简体   繁体   English

是否可以从 Autodesk Forge (ACC/BIM360) API 响应中获取视口信息?

[英]Is it possible to get the viewport information from Autodesk Forge (ACC/BIM360) API response?

I'm working on an implementation (like Autodesk extension DropeMeExtension) that places tags on the 2D drawing screen belonging to the rvt file.我正在开发一个实现(如 Autodesk 扩展 DropeMeExtension),它将标签放置在属于 rvt 文件的 2D 绘图屏幕上。

The location of the pin seems related to the viewport, so before loading the forge viewer, is it possible to determine the existence of the viewport of the item belonging to the rvt file in the API response? pin的位置似乎与视口有关,所以在加载forge查看器之前,是否可以在API响应中确定属于rvt文件的项目的视口存在?

What I want is get the items which have viewports without load the item to a forgeviewer.我想要的是获取具有视口的项目而不将项目加载到 forgeviewer。

(Before loading the forge viewer, I utilize manifest api( https://developer.api.autodesk.com/modelderivative/v2/designdata/{urn}/manifest ) to determine if the children 2d item of rvt is a viewable 2D model. Is it possible to get the information of viewport via the manifest api request or other ACC/BIM360 APIs?) (在加载伪造查看器之前,我利用清单 api( https://developer.api.autodesk.com/modelderivative/v2/designdata/ {urn}/manifest)来确定 rvt 的子 2d 项目是否是可查看的 2D 模型.是否可以通过manifest api request或者其他ACC/BIM360 APIs获取viewport的信息?)

And I also want to know do I need to determine if viewports exist on models other than 2d floor plans.而且我还想知道我是否需要确定除二维平面图以外的模型上是否存在视口。

This type of information is included in a JSON structure called "AEC Model Data" that is generated by the Forge Model Derivative service for selected design formats.此类信息包含在名为“AEC 模型数据”的 JSON 结构中,该结构由 Forge 模型衍生服务为选定的设计格式生成。 You'll find it in the Model Derivative manifest with "role": "Autodesk.AEC.ModelData" , and you can fetch and explore the JSON data without having to load the model into the viewer.您可以在 Model Derivative 清单中找到它,其中包含"role": "Autodesk.AEC.ModelData" ,并且您可以获取和浏览 JSON 数据,而无需将模型加载到查看器中。

The format of this JSON is explored in these blog posts:在这些博客文章中探讨了此 JSON 的格式:

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM