I am trying to write a API to select many nodes using the standard selection dialog box. Then pasting them into an excel file in the order selected. Problem is that the nodes are not stored in the order selected in the array.
Can someone tell me how to access the selection order for nodes stored by the standard selection dialog box? Or a work-around.
Solved! Go to Solution.
Use a sortset instead of a set, it does exactly that.
Sortsets do nt have as much functionnalities as sets, so it often becomes useful to manipulate both in parallel. More info in the API: 4 FEMAP Tool Objects > 4.7 Sort objects
Code snipet example:
Dim s As femap.SortSet Set s = App.feSort s.Select(FT_NODE,False,"Select ") While s.Next App.feAppMessage(FCM_NORMAL,CStr(s.Current)) Wend
Thank you astrium_tls (Adrian). That worked perfectly. Expanded my sight into sortset too.
Aerospace Stress Engineer