Select to view content in your preferred language

Arcpy in SharpDevelop 4.0

912
5
01-18-2011 08:40 AM
PauloDuarte
Emerging Contributor
Just wondering if anyone out there has been able to use arcpy with the SharpDevelop IDE.  I am running the latest release (4.0.0.7070) but cannot get it to import arcpy.  I suspect that something is not quite ready between arcpy and IronPython.

Any insights would be greatly appreciated.  Thanks in advance.

Paulo
Tags (2)
0 Kudos
5 Replies
JasonScheirer
Esri Alum
Arcpy is built on arcgisscripting, which is in turn a CPython extension. You will no be able to use arcpy in IronPython.
0 Kudos
PauloDuarte
Emerging Contributor
Boo!  Thanks for the clarification.
0 Kudos
TedCronin
MVP Honored Contributor
You can play with IronClad, from Google Code (http://code.google.com/p/ironclad/), which its whole purpose is to get C based code into IronPython, but if there are issues take it up with them, since Esri isn't really keen on IronPython.  I would be interested in what you discover if you go down this path, the guys from Resolver (http://www.resolversystems.com/) were very helpful to me back at 93.  They are behind this project.

Also, see http://www.resolversystems.com/products/ironclad/
0 Kudos
JasonScheirer
Esri Alum
Have you gotten arcpy/arcgisscripting to play well with in IronClad? I haven't ever been able to get it in any sort of working state that I'd trust in production.

IronPython is great, but if you're going the .Net route you're going to need to use ArcObjects and the .Net SDKs. You get Python syntax to do your coding in but you're in a totally different development environment.
0 Kudos
TedCronin
MVP Honored Contributor
Have you gotten arcpy/arcgisscripting to play well with in IronClad? I haven't ever been able to get it in any sort of working state that I'd trust in production.

IronPython is great, but if you're going the .Net route you're going to need to use ArcObjects and the .Net SDKs. You get Python syntax to do your coding in but you're in a totally different development environment.



I haven't really tried in a few months, but I would concur, that in a production env it may not work as expected, which is why I mention Resolver since William was the initial builder of IronClad, and they continue to this day supporting the code. 

Outside of the Iron Languages, just not to keen on ArcObjects or .Net for that matter.  If I wanted ArcObjects, I suppose I would just use comtypes.  I wonder how well .Net Types would work though, hmmm.
0 Kudos