I'm doing tests with python addin, capturing the event onChangeFeature to can manipulate fields of the changed feature.
I could capture the event, but the event don't give me the changed feature.
I believe there is a simple way to get the changed feature, right?
How can i do it?
I wasn't aware that a Python Add-In had an OnChangeFeature event. Could you show us what you are testing?
An Add-In could have a ButtonClass with an onClick event or a ToolClass can have onMouseDown, onDblClick, onRectangle, etc... events but no such thing as a way to capture onChangeFeature.
http://resources.arcgis.com/en/help/main/10.1/index.html#/What_is_a_Python_add_in/014p00000025000000...
Are you confusing this with an ArcObjects COM component?
Hi James,
I'm not confusing with ArcObject COM component, it is new for me too.
Look this link http://resources.arcgis.com/en/help/main/10.1/index.html#/application_extension/014p00000018000000/
I'm just following the ESRI sample to create a python add-in application extension, and assign-in to listen the ChangeFeatureEvent.
When i was testing to do in this way (python add-in) i have seen a differences between AO ClassExtension x Python add-in Application Extension
In AO Class extension we need to "install" in all class that we want to this extension will be called.
In Python extension we need to enable the extension that we create on Extensions toolbar and then the python application extension will listen all layers (registered events on python add-in app extension)
In my tests, the registered events on python app extension add-in was fired fine!
The unique problem is: I need the feature owner of this fired event. (like AO does with class extension)
If you need, i can send the python add-in and the code base here.
I have yet to build an Add-In Extension and unfamiliar with it's features.