Select to view content in your preferred language

How to clone FeatureClass in ArcObjects ?

1299
3
07-30-2018 05:14 AM
tanerkoka
Frequent Contributor

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
Frequent Contributor

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