I'm building addin for 10.1 and need a method (ConvertToMSD) that's only available in ArcPY. I've figured out out how to execute a python script from an ArcObjects addin:

Calling arcpy/python from .NET?

Now I want to figure out how to include that Python script within in build addin. If it's not included in the addin then I have to tell the user to download the Python script and go drop it in folder x/y/z which isn't very user friendly.

Is this possible?

  • Any reason my answer to your previous question is not satisfactory?
    – blah238
    Jan 23, 2013 at 6:17
  • In Step 1 above, how do you add your python script in the .net project? I'm looking to compile a .net add-in with a custom toolbox in the addin folder.
    – user21112
    Aug 16, 2013 at 0:55

1 Answer 1

  1. Add your python script in .net project
  2. right click on the script and open properties
  3. set Copy to output directory = Copy always

Now after build your project, you will get your script file in the *.exriAddin file's install folder and when you will install your add-in, you will be able to get it in the Esri's add-in assembly folder

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.