cancel
Showing results for 
Search instead for 
Did you mean: 

Femap API Selection Order in Renumber function not available

Experimenter
Experimenter

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

Re: Femap API Selection Order in Renumber function not available

Phenom
Phenom

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

Experimenter
Experimenter

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

 

Eric,

Aerospace Stress Engineer