select last object created such as polyline

select last object created such as polyline

jalal.mousa
Advocate Advocate
1,178 Views
6 Replies
Message 1 of 7

select last object created such as polyline

jalal.mousa
Advocate
Advocate

Hi There 

is there a way a command to select last item/object created such as polyline using Autocad command 

0 Likes
Accepted solutions (2)
1,179 Views
6 Replies
Replies (6)
Message 2 of 7

pendean
Community Legend
Community Legend
Most of the AutoCAD commands respond to LAST or PREVIOUS for a selection option (which will pick up a PLINE too)
https://www.cadtobim.com/object-selection.html#:~:text=6.%20Select%20Last%20Created,it%20will%20be%2....
and
https://www.cadtobim.com/object-selection.html#:~:text=If%20you%20want%20to%20modify%20the%20same%20...

OR.... are you perhaps having something way more specific going on, or a specific command/function?

Elaborate please.
0 Likes
Message 3 of 7

Ed__Jobe
Mentor
Mentor

I answered your question in the VBA forum. It's not polite to ask the same question in multiple forums. If you made a mistake an posted to the wrong forum, then click the !Report button and ask the moderator to move it to the correct forum. Thanks.

Ed


Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.
How to post your code.

EESignature

0 Likes
Message 4 of 7

jalal.mousa
Advocate
Advocate

Hi Ed,

thanks for your answer

in my previous post they ask me to post in the proper forum VBA if this is coding question or AutoCAD if this related to program itself

so i did ask question in AutoCAD to learn about specific command that i can call and VBA to see if there is different way to do it

thanks for understanding

 

0 Likes
Message 5 of 7

jalal.mousa
Advocate
Advocate

Thanks pendean

I tried last before but i don't see option to call last polyline

and previous not recognized

 

 

0 Likes
Message 6 of 7

Kent1Cooper
Consultant
Consultant
Accepted solution

First start a command that involves object selection, then when it's asking you to select objects, type L for Last.

Kent Cooper, AIA
Message 7 of 7

pendean
Community Legend
Community Legend
Accepted solution
@jalal.mousa I see your issue: you are incorrectly using LAST and PREVIOUS as if they are commands, when in reality they are sub-options AFTER you start a command like MOVE or COPY.

I take it you did not quite understand my last reply either. Sorry it was written with assumptions on my part.

I am going to guess at your actual intent-
You do not know there is a command call SELECT: when you activate this command then use LAST or PREVIOUS, you can get that PLINE selected and stay selected when you exit SELECT command. Look up usage in HELP.

Good luck.