Hey everyone!
I want to create a Python Add-In tool that will perform the following sequence of tasks:
1. Read a specific feature layer in Table of Content (let's call it X)
2. Check the version for the layer [Working on SDE only]
3. Read the selected features from the layer X
4. Copy the selected features from layer X to another layer Abandoned_X and delete them from X.
5. Search layers (say Y, Z, ...) related to layer X, copy the related features to layers Abandoned_Y, Abandoned_Z, ... and delete them from Y, Z, ...
Requirements:
- The tool should work as an extension of the editor Toolbar
- The python Add-In button should be greyed-out when not in use and usable only after editing is turned on
- If the edits are not saved, then the tool should revert back all the changes made to say, X, Y, Z, ...
I have written logic until step 5. Following are the questions:
- How to grey-out the Add-in (render is useless) when ArcMap starts?
Thank you for your time!