Tag Info

New answers tagged

0

I think your only option here is to create a custom global function in which you pass in the toolID as a parameter and then assign a default value to that tool in order to reset it. I haven't tested this and am just writing it off the top of my head, but it should nudge you in the right direction: def resetTool(toolID, defaultValue): toolID.value = ...


-1

i think is ... class ExampleTool(object): """Implementation for Example_addin.tool1 (Tool)""" def __init__(self): self.enabled = True self.shape = "NONE" def onMouseDownMap(self, x, y, button, shift): # My code here, then.. self.enabled = False def deactivate(self): # Do I need to add something ...


2

Unfortunately, there is no way you could do this with arcpy. The DataFrame object you will work with doesn't have a property for the color of the data frame exposed. See full list of supported methods and properties here. You will need to use ArcObjects to extend ArcMap or write a custom add-in. See the Developing with ArcGIS Help section.


1

This is a two-part question, but here we go: If you are absolutely certain you are doing the process you claim to the letter and the menu item is still not being deleted from the configuration XML, you may need to go into the .XML file and delete the menu by hand in a text editor like Notepad++. You may want to file an issue with Esri support, there may be ...



Top 50 recent answers are included