IFields pFields = m_FeatureClass.Fields;
int index = pFields.FindField(m_strHeight); if (index == -1) return; IField pField = pFields.get_Field(index);IGeoDataset pGeoDataset = m_FeatureClass as IGeoDataset;
IEnvelope pEnvelope = pGeoDataset.Extent; pEnvelope.SpatialReference = pGeoDataset.SpatialReference;ITinEdit pTinEdit = new TinClass();
pTinEdit.InitNew(pEnvelope); object obj =Type.Missing; pTinEdit.AddFromFeatureClass(m_FeatureClass, null, pField, null, esriTinSurfaceType.esriTinMassPoint, ref obj); pTinEdit.SaveAs(@"C:/TIN", ref obj); // tin的保存 pTinEdit.StopEditing(false);