AutoCAD "Last Entity"

by Avinash Ketkar
(India)

When you want to refer the last entity on the visible area of AutoCAD, you usually use "last" ("l" as a shortcut).

For example, when you give "move" command and type "l" at the "Select Objects:" prompt, the last entity is selected.

But remember, this gives the last entity visible on the screen.

Instead of this, if you want to refer the last entity added in the entire drawing, use "(entlast)" Autolisp command. (dont type the enclosing quotes).

If you give "list" command and type "(entlast)" at the "Select Objects" prompt, details of the last entity in the entire drawing are shown regardless of the visibility.

You can then use the location of the entity to zoom to it.

Click here to post comments

Join in and write your own page! It's easy to do. How? Simply click here to return to AutoCAD Tips.


Sign up for our FREE CAD Tips and Tricks Newsletter:
"The CAD Times"

Enter Your E-mail Address
Enter Your First Name (optional)
Then

Don't worry — your e-mail address is totally secure.
I promise to use it only to send you "The CAD Times".

Join "The CAD Times"  Newsletter Along With 5,000 Subscribers

Enter Your E-mail Address
Enter Your First Name (optional)
Then

Don't worry — your e-mail address is totally secure.
I promise to use it only to send you "The CAD Times".



Recent Articles

  1. Lines are not appearing while drawing them; objects do not follow the curser when moved

    Jan 02, 19 11:15 AM

    Normally when drawing lines, I pick a start point and while dragging the line to another point I have always seen the line before picking the 2nd point.

    Read More

  2. Can't detach reference file in autocad 2016

    Apr 20, 18 05:08 PM

    I have reference files attached that I can't detach the normal way (highlight, right click, select detach, file is removed)

    Read More

  3. Selection Box in AutoCAD 2011

    Apr 18, 18 02:25 PM

    I am using AutoCAD 2011 and must have hit a wrong combination of keys that has brought up the Selection box that appears when I am picking a line to fillet,

    Read More