Showing results for 
Search instead for 
Do you mean 
Reply
Solved! Go to solution

Femap API Selection Order in Renumber function not available

Hi,

  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.

 

-Eric

2 REPLIES
Solution
Solution
Accepted by topic author AeroRick
‎08-26-2015 04:32 AM

Re: Femap API Selection Order in Renumber function not available

Hi,

 

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

 

Adrien

 

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

Re: Femap API Selection Order in Renumber function not available

Thank you astrium_tls (Adrian). That worked perfectly. Expanded my sight into sortset too.

 

Eric,

Aerospace Stress Engineer