AnsweredAssumed Answered

Reorder Python Addin Elements without Rebuilding Entire Addin?

Question asked by johnmdye on Jan 28, 2013
Latest reply on Feb 28, 2013 by johnmdye
Does anyone know of a way to reorder Python Addin elements built in the Addin Assistant without having to rebuild the entire thing?

I built a couple of toolbars and toolpalettes, buttons, tools, ect.

I've been asked to insert a "Combo Box" drop down to control the tool all of the elements enabled state based on the user's combo box selection

[INDENT][/INDENT]if combo box = "Selection1", tool1, tool2 and tool3, self.enabled=true and tool4, tool5, tool6 self.enabled=false.

That's not the actual code, just a basic reference to give you an idea of what I mean.

So when I added the combo box into the addin, the stupid thing is at the end of the toolpalette and toolbar because of course, I created it after everything else. There doesn't appear to be a way to just drag and drop elements into the order you want them to appear in. I thought about maybe editing the config.xml but first of all, I don't know if that will actually solve the problem and secondly, I'd prefer not to delve into that and open pandora's box if there is a more elegant solution available.

I know I can hit customize in ArcMap and move it. But that customization won't reflect in the esriaddin file I distribute, so when others install it they will need to make that customization as well which...they shouldn't have to do.

Any ideas?