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 add viewcontrol to a winform

1 REPLY 1
Reply
Message 1 of 2
Anonymous
474 Views, 1 Reply

how to add viewcontrol to a winform

hello,i have control application and the main form adds a viewcontrol on it to show the nwd file,it works well.

and i want to crete a new form to view some other files like cad file, etc.

so i add a viewcontrol on the second form,but when i use

NewForm f = new NewForm();

f.showDialog();

the application crashes

so how can i add multiple viewcontrols in one application?

TKS~~~~

1 REPLY 1
Message 2 of 2
xiaodong_liang
in reply to: Anonymous

Hi ,

 

have you initialized the app as MultiDocument? The API help tells more. In addition, please take a look at  the sample

C:\Program Files\Autodesk\Navisworks Manage 2013\api\net\examples\Controls\Viewers\MDIViewer

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

Post to forums  

Rail Community


 

Autodesk Design & Make Report