entget
(entget ename [applications])
The entget function returns the defining data of a drawing entity specified by its entity name ename.
Arguments
ename specifies the entity name of the drawing entity, whose defining data are requested.
applications specifies the registered application name(s) in a list whose Extended Entity Data should be retrieved by the function (optional). The given names may contain wild cards. For valid wild card pattern match codes see the wcmatch function. The rules for the match codes are the same for both functions.
Return Value
If the function succeeds, it returns an association list containing the entity information, otherwise nil. Only in the case that the group codes for LineColor or LineStyle are ByLayer this default value is not returned.
: (entget (entlast))
((-1 . <Ename: 432f5c8e>) (0 . "LINE") (8 . "0") (5 . "00000005") (10 23.00 23.00 0.00) (11 12.00 12.00 0.00))
In the example above, the following group codes are listed:
Code |
Meaning |
-1 |
Entity name |
0 |
Entity type |
9 |
Layer |
5 |
Handle (Reference) |
10 |
Start point |
11 |
End point |
assoc, cdr, entmod, handent, wcmatch