ENgetcurveid function

Retrieves the ID name of a curve given its index.