Bill,
She was showing the OP how to get the layer's information, not just its
name, per OP's request. Your method retrieves only the name.
"Bill Gilliss" wrote in message
news:6331909@discussion.autodesk.com...
On 2/7/2010 12:01 PM, The Dark Princess wrote:
> (setq en (car (entsel)))
>
> ...
> ; using dxf and lisp
> (setq ed (tblsearch "layer" (cdr (assoc 8 (entget en)))))
>
> ...
>
No need for (tblsearch) -- we know it's on a layer. With plain old LISP,
all you need is
(setq en (car (entsel)))
(setq lay (cdr (assoc 8 (entget en))))