Skip To Content

esri_feature_changeElementType (AutoLISP)

The function changes the element type of a selection set of point features.


(esri_feature_changeElementType selection_set element_settings)


  • selection_set | AutoCAD selection set | required | A valid selection set of features.
  • element_settings | associated list | required | An associated list of settings as dotted pairs defined as follows:

Associated labelValue typeValue descriptionRequired or optional


The default element type of POINT, Block Reference, or AECC_COGO_POINT




The block name if the type is Block Reference, or a description if the type is AECC_COGO_POINT

required: if Block Reference or AECC_COGO_POINT

Example usage

Change the element settings of the selected set with an AutoCAD block insert named Damaged_Structure.

  (setq ss (ssget))
  (list (cons "Type" "Block Reference") (cons "Description" "Damaged_Structure"))

Result example usage

Changes the element type of the selected features and returns a list of true:


Return values

  • If successful, a list of true: (T)
  • If failed, a list is returned 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 of the three required arguments was not provided.

  • (nil ("Error" . "Unsupported geometry type."))

    The function works with point feature layers only.

  • (nil ("Error" . "Block name does not exist."))

    The specified block name in the Description does not exist in the drawing.

  • (nil ("Error" . "Unsupported element type."))

    Element types must be POINT, Block Reference, or AECC_COGO_POINT.