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

Answers

  • Mike.Thompson
    Mike.Thompson Member, Employee Posts: 339
    25 Answers 100 Comments 25 Likes First Anniversary
    ✭✭✭✭

    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.