CadWorkspaceFactoryClass fac=new CadWorkspaceFactoryClass ();
String filePath=@"E:\working\kinn\data";
IFeatureWorkspace space=fac.OpenFromFile(filePath,0) as IFeatureWorkspace ;
//打开FeatureClass:
//线
IFeatureClass polyline =space.OpenFeatureClass("TD.dwg:Polyline");
//点
IFeatureClass point=space.OpenFeatureClass ("TD.dwg:Point");
//面
IFeatureClass polygon=space.OpenFeatureClass ("TD.dwg:Polygon");
//注记
IFeatureClass anno=space.OpenFeatureClass ("TD.dwg:Annotation");
String filePath=@"E:\working\kinn\data";
IFeatureWorkspace space=fac.OpenFromFile(filePath,0) as IFeatureWorkspace ;
//打开FeatureClass:
//线
IFeatureClass polyline =space.OpenFeatureClass("TD.dwg:Polyline");
//点
IFeatureClass point=space.OpenFeatureClass ("TD.dwg:Point");
//面
IFeatureClass polygon=space.OpenFeatureClass ("TD.dwg:Polygon");
//注记
IFeatureClass anno=space.OpenFeatureClass ("TD.dwg:Annotation");