how I can see view points in Autodeskforge

2019-09-14 00:40发布

We have been working on the web based application using AudeskForge, where we are uploading the file (.rvt,.NWD) files but we can track the ViewPoint in it. On other hand we can see the ViewPoint when we open files in respective applications (Revit, Navizwork).

We have been using audesk-model-derivatives to get the data.

I would like to how I can see view points in forge?

PS:So idea is to get possibly all data and datapoints from the stand-alone software to webbased forge app.

1条回答
对你真心纯属浪费
2楼-- · 2019-09-14 01:00

Update: Model Derivative API has translated the data of saved viewpoints now, and Forge Viewer provides the APIs to get those presets cameras. They are stored at:

  presets_cams = NOP_VIEWER.model.getData().cameras

Then, you can switch current view to that of the predefined saved viewpoint:

  NOP_VIEWER.impl.setViewFromCamera(presets_cams[index]);
查看更多
登录 后发表回答