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?

asked Jan 23, 2013 at 5:41
2
  • Any reason my answer to your previous question is not satisfactory? Commented 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. Commented Aug 16, 2013 at 0:55

1 Answer 1

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

answered Jan 23, 2013 at 6:37

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

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

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.