(entget entity-name [application-list])


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

As an example, let's draw a line and assign it the following variable values:

:Line

>Start point: 0,0

>Close/Undo/<Next point>: 5,5

:Change

Select entities: Pick line

Properties/<Change point>: P

(Color/Elev/LAyer/LType/ltScale/Thickness)? C

New color <BYLAYER>: 5

New Layer <0>: Electric

New Linetype <BYLAYER>: Continuous

 

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...

(entdel entity-name)

(entlast)

(entmake [entity-list])

(entmod entity-list)

(entsel [prompt])

(entupd entity-name)

LISP Compatibility

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.