Cancel
Showing results for 
Search instead for 
Did you mean: 

Highlight modified components ?

Valued Contributor
Valued Contributor

Is there a way to check if a component is highlighted in the 3D viewer? I would like to return a boolean value if possible.

 

1 REPLY

Re: Highlight modified components ?

Genius
Genius

Hi!

 

Perhaps you can use the SelectionManager

UI theUI = UI.GetUI();

int numberOfSelectedObjects = theUI.SelectionManager.GetNumSelectedObjects();

selectedObject = (NXOpen.Assemblies.Component)theUI.SelectionManager.GetSelectedTaggedObject(i);

 

to check if a component is selected (= highlighted).