Hi,
I have 2 buttons: 「Zoom」 and 「Original State」
+ Click button 「Zoom」 → Zoom to the modelitem → I've been using the API as below, it was OK.
ComApiBridge.ComApiBridge.State.ZoomInCurViewOnCurSel();
+ Click button 「Original State」 → I would like back original state of modelitem before zooming, but i don't know how to use the API to do this. How can i do it?
Any tips on these will be great help. Thanks in advance.
Regards,
MinhHN
Solved! Go to Solution.
Solved by ulski1. Go to Solution.
minhhn,
in navisworks you have an active document and and active view. you can also store a collection of viewpoints (camera positions) in a navisworks file. Navisworks have no concept of a "default" camera position linked to every object. You can write code which stores the current viewpoint before you zoom to an object, later you can then jump back to the viewpoint you stored. Another option is to use the "undo" system to "undo" your zoom tell the user to press undo or ctrl+z
Can't find what you're looking for? Ask the community or share your knowledge.