引用模型,使用.NET的反射技术,把模型转换为类
直接实例化类,然后用以下几行代码即可!
Geoprocessor gp = new Geoprocessor();
getStreamNet.streamNet pstreamNet = new streamNet();
pstreamNet.tingrid2 = @"E:/ss/tingrid";
pstreamNet.Input_raster_or_constant_value_2 = 1000;
pstreamNet.Output_polyline_features = @"C:/sss.shp";
IGeoProcessorResult pGeoProcessorR = gp.Execute(pstreamNet, null) as IGeoProcessorResult;
来自:http://bbs.esrichina-bj.cn/ESRI/viewthread.php?tid=68800&highlight=%C4%A3%D0%CD