Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

It appears that the only way to copy individual rows of data while preserving GlobalIDs in code is by using C# or VB.NET.

I need to run the C# code from the above link within a python tool, and I am curious if anyone knows proper techniques or any examples of doing this. I have come across a couple ways to execute C# code within python, such as this and this, but I wanted to see if anyone could show me any examples or tips on doing this for ArcMap 10.

Also, I know that writing the whole script in C# using arcobjects would probably be the 'best' solution, but my organization would like to keep all of our tools in python.

share|improve this question

There are Python for .NET bindings:

Python for .NET is a package that gives Python programmers nearly seamless integration with the .NET Common Language Runtime (CLR) and provides a powerful application scripting tool for .NET developers. Using this package you can script .NET applications or build entire applications in Python, using .NET services and components written in any language that targets the CLR (Managed C++, C#, VB, JScript).

share|improve this answer

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.