I worked out a Python Add-In Combox, that combines different Fields from different Feature Class in one Drop-Down-List. The user can select one ID/Code in the Drop-Donw list and the active view zooms to the selection. So far it's not very fast, but it works. My problem is, that Arc Map crashes, when I use the Combobox and a Feature Layer is selected. This I can't fix. Did anybody has an idea?
Here is my code:
<SPAN class="keyword token">import</SPAN> sys<SPAN class="punctuation token">,</SPAN> os<SPAN class="punctuation token">,</SPAN> arcpy<SPAN class="punctuation token">,</SPAN> zipfile<SPAN class="punctuation token">,</SPAN> traceback<SPAN class="punctuation token">,</SPAN> pythonaddins
<SPAN class="keyword token">from</SPAN> arcpy <SPAN class="keyword token">import</SPAN> mapping<SPAN class="punctuation token">,</SPAN> env
<SPAN class="keyword token">class</SPAN> <SPAN class="token class-name">SiteComboBoxClass43</SPAN><SPAN class="punctuation token">(</SPAN>object<SPAN class="punctuation token">)</SPAN><SPAN class="punctuation token">:</SPAN>
<SPAN class="string token">"""Implementation for Site_Python_Addins_addin.combobox (ComboBox)"""</SPAN>
<SPAN class="keyword token">def</SPAN> <SPAN class="token function">__init__</SPAN><SPAN class="punctuation token">(</SPAN>self<SPAN class="punctuation token">)</SPAN><SPAN class="punctuation token">:</SPAN>
self<SPAN class="punctuation token">.</SPAN>items <SPAN class="operator token">=</SPAN> <SPAN class="punctuation token">[</SPAN><SPAN class="punctuation token">]</SPAN>
self<SPAN class="punctuation token">.</SPAN>editable <SPAN class="operator token">=</SPAN> <SPAN class="token boolean">True</SPAN>
self<SPAN class="punctuation token">.</SPAN>enabled <SPAN class="operator token">=</SPAN> <SPAN class="token boolean">True</SPAN>
self<SPAN class="punctuation token">.</SPAN>dropdownWidth <SPAN class="operator token">=</SPAN> <SPAN class="string token">'WWWWWWWWW'</SPAN>
self<SPAN class="punctuation token">.</SPAN>width <SPAN