Idea for last batch of selected Reselect Ruby
-
You know when you have to select a lot of lines segments one by one to make a group ( like the civil guys drawing who really doesnt pay much attention to layers, and you have to reorganize his topo, text, building footprint, etc.) and when you right click you dont get it just right and the hundred or so lines you just selected go back to black? You know how mad that makes you?
Well I may be the only one, but when this happens I wish I had a command to reselect all those lines (or faces or......) again. like: oops: Reselect Previously Selected. Just my thought for the day. -
OMG...I'm so with you on this one!
-
Yeah, me too! And no matter how many times I tell myself to remember to use the pulldown menus when doing same...I always forget and rightclick
-
Hundred lines......I get peeved when it's 8 or 10 and that happens.
C
-
Moved to the Ruby Forum.
-
I think, with an observer and an own datastructure (maybe a simple nested array) it could be done.
azuby
-
Hi,
Maybe selectionMemory.rb will help: memorizes, adds, recalls selection.
D/L it at my site, in the selection-layers section
Hope this helps, -
No, no, download it from MY site!
http://www.smustard.com/script/SelectionMemoryActually, I started work a few weeks ago on a new version that will be automatic, as Azuby suggested.
-
this would go on the wish list sticky...
-
SelectionMemory is a good start, but for me it should be as intuitive as most of SU is.
Maybe that tells you more about me than about the ruby...
[Maggy]
-
Download SelectionMemory to your Plugins folder.
Usage: Right-click OR Plugins menu > SelectionMemory >
Memorize (the current selection)
Add (the current selection to what's already in memory)
Recall (the selection items in memory)It's strictly a manual process right now. I'm leveraging observers to make it an automatic process.
-
@rhankc said:
You know when you have to select a lot of lines segments one by one to make a group ( like the civil guys drawing who really doesnt pay much attention to layers, and you have to reorganize his topo, text, building footprint, etc.) and when you right click you dont get it just right and the hundred or so lines you just selected go back to black? You know how mad that makes you?
Well I may be the only one, but when this happens I wish I had a command to reselect all those lines (or faces or......) again. like: oops: Reselect Previously Selected. Just my thought for the day.I think I would try to use a Tool, and have it recognize only edges, and add the selected edges to some data structure. The tool could have a proximity setting where it would select lines with the specified radius of the click. Or even select lines within an agular proximity of the last selected line (say within 45 degrees.) It could auto-select connected lines in this manner (using the angular proximity.)
I'm just throwing ideas out there to see what sticks.
-
Jim, those ideas are sticking like superglue! The industrial type.
[Maggy]
-
The tool idea could work, but personally, I'd much rather write an observer than a whole new selection tool But that's just personal preference.
-
@unknownuser said:
I think I would try to use a Tool, and have it recognize only edges, and add the selected edges to some data structure. The tool could have a proximity setting where it would select lines with the specified radius of the click. Or even select lines within an agular proximity of the last selected line (say within 45 degrees.) It could auto-select connected lines in this manner (using the angular proximity.)
I'm just throwing ideas out there to see what sticks.
that was my cue, wasn't it?
Let me see, only edges. sounds good since this is the beginning of the geometry.
data superstructure: lost me there, don't know.
I was thinking whatever the last selection was, so a radius of x units would be fine, but I think default should be suitable for re selection without extra input. Angular proximity: ok could it be 360? I never really know where the cursor was when the last valid selection was made. The command is initiated working towards the Weld.rb, where sometimes there's spaghetti on the screen, all connected makes a mess.
Sorry I didnt recognize the question earlier, Thanks for the suggestions. -
Okay, the new SelectionMemory is getting closer to being ready! The guts work, so once I get the UI finished, it'll go live on Smustard.
-
It sure is nice to work with pros. Thanks
-
Here's a screenshot of the new SelectionMemory plugin.
It will remember up to 20 selection sets, which you can use separately or in combination to restore a selection set or build a new selection set.
Each set can be:
1 selected as THE selection set,
2 added to the existing selection set, or
3 removed from the existing selection set, or
4 deleted from memoryYou can also Add All, Remove All, or Delete All (clears the SelectionMemory).
Also includes a right-click menu item for re-selecting the previous selection set for those times when you just lost your set and need it back quickly.
Any suggestions/thoughts/comments?
Closeup of the dialog box
-
Thinking ahead (for next version?):
- Ability to name sets
- Ability to lock sets (currently, the lowest-numbered set is removed once the 21st set is created, and each set is renumbered. Locking would prevent a set from being displaced)
- Ability to save sets in the model for future reference
Input is appreciated.
Advertisement