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– blah2382013年01月23日 06:17:00 +00:00Commented 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– user211122013年08月16日 00:55:53 +00:00Commented Aug 16, 2013 at 0:55
1 Answer 1
- Add your python script in .net project
- right click on the script and open properties
- 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
Explore related questions
See similar questions with these tags.