Determine the DXF data of an entity.
This function retrieves the entity list from the drawing database. The list is assigned to a variable, and then is taken apart, using functions like car, cdr,and assoc.
The entity list returned is composed of element pairs called dotted pairs because a dot separates each half. In each pair, the first number represents the code number for a characteristic of the element; the second number is the data associated with the code.
Example
Using the settings above, the following example applies:
| Function | Returns | Code |
|---|---|---|
| (setq myline (entget (entlast))) | ((-1 . <Entity name: | 1fe0558>) |
| (0 . "LINE") | 0=Entity type | |
| (5 . "2B") | 5=Handle | |
| (100 . "AcDbEntity") | ||
| (8 . "Electric") | 8=Layer name | |
| (62 . 5) | 62=Color number | |
| (6 . "CONTINUOUS") | 6=Linetype name | |
| (100 . "AcDbLine") | ||
| (10 0.0 0.0 0.0) | 10=x,y,z-coords | |
| (11 5.0 5.0 0.0) | 11=Other x,y,z-coords | |
| (210 0.0 0.0 1.0)) | 210=x,y,z-extrusion |
NOTES
Tell me about...
Programming Overview of LISP (LISt Processing) Language
| Bricscad™ is commercialized by Bricsys NV. Bricsys NV and Vondle NV are fully owned subsidiaries of Menhirs NV. © 2001- Menhirs NV - All rights reserved. |