Activate last selection
-
Hello everyone!

Can I activate a previous selection in a method?
For example:
-
I select a piece of furniture in SketchUp.
-
I activate a method that selects handles that are sub-components.
-
Subsequently, it disables the furniture selection.
-
Another method changes the Handles.
-
Can we then reactivate the furniture selection?
If so, how should I proceed?
Thank you
-
-
I am not an accomplished coder but it seem to me that if you think the user is going to need access to the sel save it as an array at the first then it can be reused.
Keith
-
Seems to me that ktkoh is right. Make an Array using #to_a to remember the contents of the current selection. Then later use Selection#clear! and Selection#add to put the contents of the Array back into the Selection.
-
There might be a plugin out there called "Selection Memory" or similar.
-
Thank you for your help!

I will analyze the Selection Memory Plugin and post the method if I find it.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register LoginAdvertisement