For all issues regarding the Forums use, please, refer to the Forum Rules.

Our Solutions

Need professional assistance?
Consider our:

Support Offerings

 

Need to speed up your development?
Have a look at our:

Samples & Tools

 

Need some functionality extending standard OCCT capabilities?
Check out our:

Adv. Components

Related pages

AIS_InteractiveContext::SetPreselected

Patrik Mueller's picture
Forums: 

Hi Francois,

I'm not sure - but there is

void SetCurrentObject
(const Handle(AIS_InteractiveObject)& aniobj,

const Standard_Boolean
updateviewer = Standard_True
)

So if you store the handle and combine it with your "TreeItem" data - wouldn't that give this result??

Best regards,

Patrik Müller

Francois Lauzon's picture

Hi Patrick,
I've tried it, but SetCurrentObject will actually highlight and select the object, what I want his pre-selection highlight (the light blue one) like you've got using MoveTo.
Thanks,
Francois.