Community
Navisworks API
Welcome to Autodesk’s Navisworks API Forums. Share your knowledge, ask questions, and explore popular Navisworks API topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to back original state of modelitem after zooming ?

2 REPLIES 2
SOLVED
Reply
Message 1 of 3
Anonymous
512 Views, 2 Replies

How to back original state of modelitem after zooming ?

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

Tags (3)
2 REPLIES 2
Message 2 of 3
ulski1
in reply to: Anonymous

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

 

Message 3 of 3
Anonymous
in reply to: ulski1

Hi ulski,

Thank you for the help! I would do the way that you had instructions.

Regards,
MinhHN

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Rail Community


 

Autodesk Design & Make Report