ssname

(ssname sname n)

The ssname function retrieves the entity name contained in a given selection set of the current drawing via its index n in the selection set.

The function lets you evaluate a selection set created by ssget entity by entity.

Arguments

sname specifies the selection set.

n can contain the range of 0 (first entity) to (sslength) (sname) -1), which is the last entity in the selection set.

Return Value

The function returns the entity name of the n-th element of the selection set passed to the function.

Example

: (setq selset1 (ssget))

<Selset: 4b1f18cc:00000044>

: (ssname selset1 0)

<Ename: 4237b028>

Related Functions

ssget, ssadd, ssdel