How to select object through programing?

Hi,
I want to select object through programing.
Are there any functions to iterate all the objects in AIS_InteractiveContext and how to put the object into selection state?
Thanks!

Ivan Fontaine's picture

Yes, you can get a list of all displayed object by calling
AIS_InteractiveContext:: DisplayedObjects.

Then to select one of them using
AIS_InteractiveContext::
AddOrRemoveSelected

t5vk8g's picture

Best wishes to Ivan Fontaine!