2

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.

4

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).

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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