Add selected solution item to the SelectionManager


Hi Team,
I would like to loop over all the solution elements I have selected (like stress, strain or else) in order to create some animations from them.
However selection = ExtAPI.SelectionManager.CurrentSelection won't work, selection array is empty.
Should I tell to the Selection manager what kind of object type I want to select?

I must say that the documentation is pretty poor (and extremely slow) regarding the ExtAPI. The only good guidelines are contained in that forum.

Thanks by advance for your answer


  • Mike.Thompson
    Mike.Thompson Member, Employee Posts: 290
    First Anniversary First Comment 5 Likes Ansys Employee

    The selection manager is for the graphics window selection.
    What you want is Tree.ActiveObjects for getting the object active in the tree.

    I highly recommend going through training on ANSYS Learning Hub before trying to understand the documentation.

  • flux
    flux Member Posts: 4
    First Comment

    Thanks for your quick answer , I will have a look at it.