Skip to main content
1-Visitor
November 29, 2017
Solved

Toolkit : How to find Component name/ID on click of context menu?

  • November 29, 2017
  • 1 reply
  • 1795 views

Hello everybody,

 I have configured the shortcut menu for components. Menu gets displayed on right click. Everything is fine till here.

So when assembly is displayed in Tree view, I can right click on one of it's components (asm/part) and execute my function.

 

Problem: I need to find out the name/id of selected component/s on which user "right clicked".

I can see that information in trail file but need to know the function which will provide me required information.

 

Thanks in advance to all those who would share their knowledge,

Madhavi

 

 

 

 

Best answer by MadhaviG

solution: ProSelbufferSelectionsGet

1 reply

MadhaviG1-VisitorAuthor
1-Visitor
November 29, 2017

has anybody used:

ProUITreeNodesVisit

ProUITreeChildnamesGet

ProUITreeNodeIsSelected ?

 

MadhaviG1-VisitorAuthorAnswer
1-Visitor
November 30, 2017

solution: ProSelbufferSelectionsGet