17 Jun 2018

Saved Viewpoint of Navisworks File in Forge Viewer

The saved viewpoints of Navisworks enables you to manage different views of your model so that you can jump to preset viewpoints without having to navigate each time to reach an item. In the past, Forge Model Derivative API did not translate these information, so we had to dump the information by Navisworks API in plugin to a dataset (xml whatever), then load them and convert to the camera objects of Forge Viewer. 

Now, Model Derivative API has translated the data of saved viewpoints, 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:


https://viewer.autodesk.com/ provides the panel of saved viewpoints category, yet under Sheet category. 

saved vewipoint

Related Article

Posted By

Xiaodong Liang

Xiaodong Liang has been with Autodesk since 2007, focusing on providing programming support, consulting, training and evangelism to external developers. He started his career China and now lives in Beijing, China. Xiaodong is currently a developer consultant in the team Developer Technical Services (DevTech), the worldwide team of API gurus providing technical services through the Autodesk Developer Network. He...