Hi there,
I want to get current saved view point in my c# code using com api.
state.CurrentView is an InwOpAnomView and saved viewpoints are InwOpView objects
how could I get which InwOpView is now being displayed in the model?
Regards,
Afshin
Hi,
So, you want to know which Saved View is applied currently. Unfortunately, this ability is not provided, yet. The only event is InwOpStateEvents. OnSavedViewsChanged, but it does not tell which one is selected.
You may think compare all the params ( Camera params, Paradigm, RenderStyle etc) between the current view and all Saved Views. If all are same, this Saved View might be the current view. But it is just 'possible' because there may be more than one Saved Views with same params, or current view could be adjusted manually till it has same params, in such situation, none of Saved Views is applied.
Regards,
Xiaodong Liang
Developer Consultant
Autodesk Developer Technical Services
Dear Xiaodong,
Thanks for responding,
I hope we could see some more powerful event handling functionalities in future releases.
Regards,
Afshin.
I understand this caused you frustrated with your application in the past. If you have checked Navisworks 2013 .NET API, you will have known SavedViewpoints.CurrentSavedViewpoint tells the current selected saved viewpoint.
Edited by
Discussion_Admin