Select to view content in your preferred language

how to copy a feature class from sde to file geodatabase

1802
1
Jump to solution
05-24-2013 12:16 PM
TedRakel
Deactivated User
I need to copy a feature class that participates in a geometric network from SDE into a file geodatabase.  I do not want the objects related to the feature class to be copied.  I also don't want to copy all the feature classes that participate in the geometric network.  If possible, I need to preserve the object ids on the features.  I can do this using arc toolbox and the 'feature class to feature class' tool along with a field map that preserves the original object ids.  I'm looking for a way to do this in arc objects.
0 Kudos
1 Solution

Accepted Solutions
DuncanHornby
MVP Notable Contributor
Ted,

If an existing tool does the job you need it to do then just call it using the
IGeoProcessor object and it's execute method. Follow the link and you'll see an example of how the code is put together to call an existing tool. You'll see that the execute method returns a GeoProcessorResult a
nd you can check the status property to see if it ran without error.

Duncan

View solution in original post

0 Kudos
1 Reply
DuncanHornby
MVP Notable Contributor
Ted,

If an existing tool does the job you need it to do then just call it using the
IGeoProcessor object and it's execute method. Follow the link and you'll see an example of how the code is put together to call an existing tool. You'll see that the execute method returns a GeoProcessorResult a
nd you can check the status property to see if it ran without error.

Duncan
0 Kudos