Store | Contact Us | Careers
 
  • Home
  • Industries
  • Products
  • Training
  • Support
  • Services
  • Events
  • News
  • About
    • About Esri
    • Careers
    • Esri Video
    • Partners

Support

Search Support
You are here: > ArcScripts > Search Results > Script Details Login | Feedback | Help

Selection Memory - save and restore selection sets



contact author | download help | report inappropriate content
Author Stephen Lead
File Name selection_memory_92.zip
Language Visual Basic
Last Modified Jan 20 2009
Status of work Public Domain
Software ArcGIS Desktop
File Size 170.92 kb
Downloads 473

ArcScripts is intended for the free exchange of scripts and tools related to ESRI software products. Please alert the moderator if this script is a demo, trial-version, or an advertisement for a retail product.


Summary
Save the current selection set, such that it can be restored again later.

This code will write any selected features, in all layers, to memory. The selection set can then be restored by reading in the features from memory.

To use, add some layers to the map then select some features from one or more layers. Display the Selection Memory toolbar, then use the Save Selection Set button to write the selected features to memory.

Change the selection set, then restore the previous selection using the Restore Selected Features button.

This code will honour the Interactive Selection Method, meaning that the saved selection can be added to the current selection set, selected from within it, etc. The current layer selectablity is also honoured, so if (for example) a layer was selectable when the selection set was saved, but is no longer selectable, it will not be selected by the Restore button.

History
Original coding - 26th July, 2006
Updated to handle annotation, migration to 9.2 - 13th March, 2008

Please report any problems or comments via the Contact Author option at http://arcscripts.esri.com/details.asp?dbid=14670
Contact Us | Privacy | Legal | Site Map