Hi,
Using the API .Net or COM, how can I activate a Saved View Point the same way it is activated when the user click it in the tree?
I managed to align the view to the viewpoint coordinate with the method CopyFrom, but this doesn't activate any of the annotations of the view, the material overrides nor the Hide/show status. Where does Navisworks store this data? and how can I retrieve/activate it as well?
Thanks,
Solved! Go to Solution.
Solved by ngombault. Go to Solution.
Funny I spent a week wondering if that would be possible and the entire afternoon trying. And just after I posted the question i found the solution.
You need to use the SavedViewPoint, Instead of just the Viewpoint.
Autodesk.Navisworks.Api.Application.ActiveDocument.SavedViewpoints.CurrentSavedViewpoint = CType(RefSavedViewpoint)
Cheers
You need to pass the type as the second argument to the CTYPE function. "... = CType(RefSavedViewpoint, SavedViewpoint)"