std-enamep, std-ename-exist-p, std-picksetp


Synopsis

(std-enamep <expr>) ; predicate if of type ENAME

(std-ename-exist-p <expr>) ; predicate if ENAME and not deleted

(std-picksetp <expr>) ; predicate if of type PICKSET

Description

STD-ENAMEP is a basic type predicate such as stringp, STD-PICKSETP, STD-INTEGERP, STD-REALP, STD-FILEP, STD-POINTP and so on. It returns T if the expression is of type ENAME, if the argument is an AutoCAD entity, otherwise it returns nil.

It is the same as (eq (type expr) 'ENAME)

STD-ENAME-EXIST-P returns T if the argument is of type ENAME and if the entity exists in the current AutoCAD database, otherwise nil. Deleted entities do still exist in the database, they may be retrieved e.g. with ENTNEXT, ENTGET with deleted entities returns nil.

It is the same as (and (std-enamep expr) (entget expr))

STD-PICKSETP is another basic type predicate. It returns T if the expression is of type PICKSET, if the argument is an AutoCAD selection set, otherwise it returns nil.

It is the same as (eq (type expr) 'PICKSET)

Arguments

expr: Any lisp expression

Return Value

T or nil

Side Effects

None.

Module

(std-require 'STDENT) resp. (std-require 'STDERROR)

STD-ENAMEP and STD-PICKSETP are defined in STDENT,

STD-ENAME-EXIST-P is defined in STDERROR