AnsweredAssumed Answered

Call AddFields_management from c#

Question asked by RehmSoftware on Nov 13, 2017
Latest reply on Nov 14, 2017 by RehmSoftware



I'm trying to call AddFields_management via the Geoprocessing.ExecuteToolAsync function. And while I get other python tools working flawlessly I have a hard time adding multiple fields via AddFields_management. My main issue is how to pass the field description parameter which is a nested list in python. I tried jagged arrays, nested List<> but nothing worked.


So given the "official" example..

import arcpy

arcpy.env.workspace = "C:/data/district.gdb"'school', [['school_name', 'TEXT', 'Name', 255, 'Hello world'], ['street_number', 'LONG', 'Street Number', None, 35]])


How would that look in C#?


Thanks in advance & Best regards