3

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?

ChrisInCambo
  • 2,442
  • 17
  • 17

1 Answers1

3
  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

Emi
  • 2,405
  • 2
  • 22
  • 40