Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

I'm working on an add-in for ArcMap 10.0 in .Net version 3.5. It was finely added in arcgis desktop 10.0 as addin tool and working finely. I added some code in the addin project and build that project again. But At this point, when I run ArcMap and select the tool, the tool is deactivated. In fact, when I put break point on my project and debug it, tool's any method are not called. I wonder, the OnActivate() method is not called either. Even the constructor of the Addin Tool class is not called.

Question:

How do I activate my tool now? Why does the tool not call it's constructor or OnActivate() method?

share|improve this question
    
@Eml, I believe for add-ins you have to use the 'protected override void OnUpdate()', procedure for your enabling or disabling tool events. –  artwork21 May 29 '12 at 12:43
    
I added 'protected override void OnUpdate()' procedure from when I started to develop this addin. But problem is at debug mode, the addin even didn't call the OnUpdate() method also as I mentioned before. –  Emi May 31 '12 at 5:51
    
If you were unable to resolve this at 10.0, have you tested at 10.1 or 10.2 to see if it persists there? –  PolyGeo Sep 25 '13 at 21:23

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.