How to get the component id


Updated by Altair Forum User
Hi all,
My objective was to write a program to select the components from the file and i want to print the ID's of the component which i have selected in order.
when i try to print those i am getting the ID's in ascending order..
I want those ID's in the order i have selected..
I selected the components using this option.
*createmarkpanel comps 1 'Select Components//s'
set compList [hm_getmark comps 0]
Thanks in Advance.
Karthikeyan