How to clone FeatureClass in ArcObjects ?

1087
3
07-30-2018 05:14 AM
tanerkoka
Occasional Contributor II

Hi ,

I have a featureClass I want to clone an update It (featureClass). How can I clone FeatureClass? Are there any example code ?

 

Thanks

Tags (1)
0 Kudos
3 Replies
DuncanHornby
MVP Notable Contributor

If by Clone you mean make a copy of a featureclass why not using the geoprocessor and call the copy features tool?

0 Kudos
tanerkoka
Occasional Contributor II

Hi Duncan ,

Thanks for answering but I can clone only in code not use geoprocessing tool.Is it possible clone in code ?If yes are there any example code about this issue. 

Tahanks

0 Kudos
DuncanHornby
MVP Notable Contributor

I was suggesting you call the geoprocessing tools through code using the IGeoProcessor interface, so not as tools in ArcMap or a model.  I recently replied to another question with some sample code to deal with their situation, study this as it shows you how to call existing geoprocessing tools in ArcObjects. Search Geonet you will find many examples, keyword IGeoProcessor.

0 Kudos