问题
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:
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]);
来源:https://stackoverflow.com/questions/44380480/how-i-can-see-view-points-in-autodeskforge