Hi,
I'm trying to copy a feature class from an SDE geodatabase into my project's default database but it's not working. Following is my code in C#:
private async void BtnRun_Click(object sender, RoutedEventArgs e)
{
sdePath = TboxPath.Text;
in_features = TboxInFeature.Text;
string url = System.IO.Path.Combine(sdePath, in_features);
Uri uri = new Uri(url);
string infc = Path.Combine(sdePath, in_features);
string outfc = Path.Combine(Project.Current.DefaultGeodatabasePath, lyrName);
await QueuedTask.Run(() =>
{
Geoprocessing.ExecuteToolAsync("CopyFeatures_management", Geoprocessing.MakeValueArray(infc, outfc));
});
}
Then after I copy it to the default geodatabase, I want to load it as a layer on my active map.
Appreciate any help.