Returns an array of curves, that belong to the path of a BmBaseRailing object
Returns eOk if successful or an appropriate error code in the other case.