ssmemb

(ssmemb ename sname)

The ssmemb function lets you test if a selection set sname contains a drawing entity specified by ename.

Arguments

The selection set specified by sname and the entity specified by ename must belong to the current drawing. The function is drawing-sensitive.

Return Value

The function returns ename, if ename is member of sname; otherwise, the function returns nil.

Examples

: (setq selset1 (ssget))

<Selset: 4b1f18cc:00000044>

: (ssmemb (entlast) selset1)

<EName:  0c0e4e60>

Related Functions

ssname, ssadd, ssdel