The esri_feature_GetMValue function returns the m-value of a feature vertex.
Syntax
(esri_feature_GetMValue ename)
Arguments
- ename |AutoCAD entity name | required | The AutoCAD entity name of the 2D or 3D polyline vertex subentity of a feature.
Example usage
Get the m-value for the first vertex of the selected feature.(esri_feature_GetMValue (caar (esri_feature_mvalues (car (entsel)))))
Result example usage
A list of the m-value for the first vertex of the selected feature is returned.
(1.0)Return values
The following are the possible return values:
- If successful, it returns a list of the m-values of the vertex.
- If failed, it returns a list with the first value of nil; then, an associated list is returned containing the key value Error and an associated error message as a string: (nil ("Error" . "<message>"))
Failed return values
A failed return value can occur for any of the following reasons:
- (nil ("Error" . "Missing required
argument."))
One or more of the required arguments were not supplied.
- (nil ("Error" . " Incorrect argument."))
The provided argument type was unexpected.
See also
esri_feature_MValues—An AutoLISP function that returns an associated list of vertex subentity names and m-values as an associated list.