Returns the type of a specified item
Supported Platforms: Windows and Mac OS
Signature(type item)itemType: Varies
A symbol.
Return ValuesType: Varies or nil
The data type of item. Items that evaluate to nil (such as unassigned symbols) return nil. The data type is returned as one of the atoms listed in the following table:
Data types returned by the type function |
| |
ENAME | Entity names |
EXRXSUBR | External ObjectARX applications |
FILE | File descriptors |
INT | Integers |
LIST | Lists |
PAGETB | Function paging table |
PICKSET | Selection sets |
REAL | Floating-point numbers |
SAFEARRAY | Safearray |
STR | Strings |
SUBR | Internal AutoLISP functions or functions loaded from compiled (FAS or VLX) files Functions in LISP source files loaded from the AutoCAD Command prompt may also appear as SUBR |
SYM | Symbols |
VARIANT | Variant |
USUBR | User-defined functions loaded from LISP source files |
VLA-object | ActiveX objects |
ExamplesFor example, given the following assignments:
(setq a 123 r 3.45 s "Hello!" x '(a b c))