pwGetIDs
[kIDs, xIDs, sIDs] = pwGetIDs()
Returns the IDs of the highest selected model.