The update of new API function documentation will be provided with the next patch. In the meanwhile please find the selection handling below:
[color=blue][font=courier]
int IfmGetNumberOfSelections(IfmDocument pDoc, IfmSEL_TYPE nSelType);
int IfmGetSelectionCapacity (IfmDocument pDoc, IfmSEL_TYPE nSelType);
int IfmFindSelection (IfmDocument pDoc, IfmSEL_TYPE nSelType, const char* pszSelName);
int IfmCreateSelection (IfmDocument pDoc, IfmSEL_TYPE nSelType, const char* pszSelName);
IfmResult IfmDeleteSelection (IfmDocument pDoc, IfmSEL_TYPE nSelType, int nSelIndex);
const char* IfmGetSelectionName (IfmDocument pDoc, IfmSEL_TYPE nSelType, int nSelIndex);
int IfmEnumSelectionItems (IfmDocument pDoc, IfmSEL_TYPE nSelType, int nSelIndex, int nStartPos);
IfmBool IfmSelectionItemIsSet (IfmDocument pDoc, IfmSEL_TYPE nSelType, int nSelIndex, int nItem);
void IfmSetSelectionItem (IfmDocument pDoc, IfmSEL_TYPE nSelType, int nSelIndex, int nItem);
void IfmClearSelectionItem (IfmDocument pDoc, IfmSEL_TYPE nSelType, int nSelIndex, int nItem);
[/font][/color]
with
[color=blue][font=courier]
typedef enum IfmSEL_TYPE { /* Selection types ... */
IfmSEL_NODAL = 0, /* Nodal selection */
IfmSEL_ELEMENTAL = 1, /* Elemental selection */
IfmSEL_INVALID = -1 /* Invalid selection type */
} IfmSEL_TYPE;
[/font][/color]
[color=blue][font=courier]nSelIndex[/font][/color] represents the index of a selection. The indexing corresponds to the numbering of available selections stored within the Selection panel from top to bottom. [color=blue][font=courier]nItem[/font][/color] stands for the node index or the element index of the mesh depending whether you have a nodal selection or elemental selection. [color=blue][font=courier]pszSelName[/font][/color] is the name of the selection.