Navisworks API

Reply
New Member
talesfc
Posts: 2
Registered: ‎08-03-2011
Message 1 of 4 (207 Views)
Accepted Solution

Help with DockPanePlugin

207 Views, 3 Replies
10-04-2012 12:20 PM

Hi 

 

I am new to Navisworks API and would like help on using the DockPanePlugin. I have read the "DockPane Tutorial" by Le Zhang (http://lezhang.net/2012/06/13/navisworks-2013-api-dockpane-tutorial/) and tested the  DockPane Helloword example. 

 

However I have not found pointers on how to access gui controls on the panel. For example, how can I set/get the text content on a textblock on the panel ?

 

regards

 

Tales

Hi Tales

 

Once you have GUI controls on the panel, you can access it in the same way you would have accessed a GUI located on a Windows Form from the class which initializes the Form. So the options are -

 

Making the GUI control's (say TextBox) modifier public and acessing it from the, say, BasicDockPanePlugin.cs class in the BasicDocPanePlugin SDK sample.

 

Or Passing the variable parameter to the Panel and using that to get/set the values of a TextBox - just like it has been done for the Label in the same SDK sample.

 

Hope this helps.

 

Employee
saikat
Posts: 185
Registered: ‎08-16-2007
Message 2 of 4 (204 Views)

Re: Help with DockPanePlugin

10-04-2012 05:35 PM in reply to: talesfc

Hi Tales

 

Once you have GUI controls on the panel, you can access it in the same way you would have accessed a GUI located on a Windows Form from the class which initializes the Form. So the options are -

 

Making the GUI control's (say TextBox) modifier public and acessing it from the, say, BasicDockPanePlugin.cs class in the BasicDocPanePlugin SDK sample.

 

Or Passing the variable parameter to the Panel and using that to get/set the values of a TextBox - just like it has been done for the Label in the same SDK sample.

 

Hope this helps.

 



Saikat Bhattacharya

New Member
talesfc
Posts: 2
Registered: ‎08-03-2011
Message 3 of 4 (192 Views)

Re: Help with DockPanePlugin

10-06-2012 05:37 PM in reply to: saikat

Hi Saikat,

 

Thanks for helping. Following your advice I succeeded accessing the wpf control.

 

regards

 

 

Employee
saikat
Posts: 185
Registered: ‎08-16-2007
Message 4 of 4 (183 Views)

Re: Help with DockPanePlugin

10-07-2012 11:19 PM in reply to: talesfc

Thats great to hear, Tales. Thanks for letting me know.

 

regards



Saikat Bhattacharya

Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Need installation help?

Start with some of our most frequented solutions or visit the Installation and Licensing Forum to get help installing your software.