Skip To Content

esri_feature_MValues (AutoLISP)

The esri_feature_MValues function returns an associated list of vertex subentity names and m-values.

Syntax

(esri_feature_MValues ename)

Arguments

  • ename | AutoCAD entity name | required | The AutoCAD entity name of the 2D or 3D polyline vertex.

Example usage

Get all the m-values from the selected feature.

(esri_feature_mvalues (car (entsel)))

Result example usage

All the m-values for each vertex of the selected feature are returned as an associated list.

(((<Entity name: 21489823470> . 0.25) (<Entity name: 21489823480> . 0.5) (<Entity name: 21489823490> . 0.75) (<Entity name: 214898234a0> . 1.3345) (<Entity name: 214898234b0> . 1.25) (<Entity name: 214898234c0> . 0.5) (<Entity name: 214898234d0> . 0.75))

Return values

The following are the possible return values:

  • If successful, it returns an associated list of vertex subentity names and m-values.
  • 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.