[Plugin] Select last entity drawn
-
Hi !
At the request of Jim , Here is a script selects last entity drawn.
The original subject is here.the first script places a shortcut in the plugins folder. It selects only the last entity.
Another script, from Didier Bur, places a shortcut in the context menu. It adds the last entity with the current selection.
The last script is for developpers. It works like autolisp function.
Sketchup.active_model.entlast
With this last script, you can re-write the others !
model = Sketchup.active_model model.selection.add(model.entlast)
And
model = Sketchup.active_model model.selection.clear model.selection.add(model.entlast)
Thanks to Didier Bur and Rick Wilson !
Advertisement