Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

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?

share|improve this question
    
Any reason my answer to your previous question is not satisfactory? –  blah238 Jan 23 '13 at 6:17
    
Question says 10.1 but tag says 10.0 - does it apply to both versions and, if not, which one? –  PolyGeo Jan 23 '13 at 7:48
    
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 '13 at 0:55
add comment

1 Answer 1

up vote 1 down vote accepted
  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

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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