takes a fraction of a second doing the same operation in the attribute table of the layer directly
I'm trying to add fields to a layer attribute table using pFeatureLayer.FeatureClass.AddField(pFieldEdit) and it takes like two-three minutes per field. I try using layerTable.AddField(pFieldEdit) after converting the layer to an ILayer using ITable layerTable = (ITable)editAttributeLayer and still is very slow. It takes a fraction of a second doing the same operation in the attribute table of the layer directly. Somebody knows why it is to slow doing int using arc objects? or is there a trick to do it fast?I need to add 80+ fields to the layer and even one minute per field would be too long.Any ideas?Thanks in advance.
Les membres connectés peuvent publier, suivre les mises à jour, et plus encore. Nouveau ici ? Inscrivez-vous gratuitement.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.