+ Reply to Thread
Results 1 to 4 of 4

Thread: ArcGIS Python Addins - Am I doing this right?

  1. #1
    Mike MacRae
    Join Date
    Nov 2010
    Posts
    310
    Points
    32
    Answers Provided
    4


    0

    Default ArcGIS Python Addins - Am I doing this right?

    Hey all,

    I have been developing a few python addins and I'm just wondering what is the best way to update the addin anytime I edit the script.

    Currently, if I make an edit to the script, it seems like I have to
    1. Close ArcMap
    2. Go to My addin folder and double click the 'makeaddin' python file
    3. Double click the 'Python Addin File
    4. Restart ArcMap for the changes to come into effect

    If I don't do these steps, then the edits aren't recognized. This gets pretty annoying and time consuming when I want to place maybe a simple print line somewhere or I do a small edit.

    Is there a better way of doing this?

    Thanks,
    Mike

  2. #2
    Chris Fox

    Join Date
    Oct 2009
    Posts
    523
    Points
    302
    Answers Provided
    36


    1

    Default Re: ArcGIS Python Addins - Am I doing this right?

    Hi Mike,

    Yes that is the workflow you need to follow in order to make changes to your add-in.
    Chris Fox
    Esri

  3. 02-20-2013 02:33 PM


  4. #3
    Mike MacRae
    Join Date
    Nov 2010
    Posts
    310
    Points
    32
    Answers Provided
    4


    0

    Default Re: ArcGIS Python Addins - Am I doing this right?

    Thanks for responding Chris. I sincerely hope this is changed for the future. Building, testing and compiling python addin scripts this way is very, very time consuming....
    Last edited by BrokenLegMike; 02-20-2013 at 02:42 PM.

  5. #4
    Chris Fox

    Join Date
    Oct 2009
    Posts
    523
    Points
    302
    Answers Provided
    36


    0

    Default Re: ArcGIS Python Addins - Am I doing this right?

    I understand, unfortunately it is not likely to change. Although it seems like you are making simple changes, this is a different level of customization you are making when you are building UI elements and application extensions. It just requires a restart of the application to take affect. This is essentially the same workflow you need to follow when building and testing .net add-ins as well.
    Chris Fox
    Esri

+ Reply to Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts