ActiveTreeSelection Object

You can use the ActiveTreeSelection object to access the list of currently selected entities in active module that are open test architecture (OTA) objects. You can retrieve or modify selected entities by iterating through the list.

For example:

set selectedItems = ActiveTreeSelection
for each currentItem in selectedItems
       if currentItem.Id <> 1 then
       end if

For details about OTA objects, and a list of OTA object properties, refer to the ALM Open Test Architecture API Reference.