还是自力更生好啊,以后对这个论坛不再那么崇拜了。  olyline PL = (Polyline)ent; int VerNum = PL.NumberOfVertices; for(int ii = 0;ii < VerNum;ii++) {  oint2d ptVer = PL.GetPoint2dAt(ii); geo.proInit(geo.dms2rad(SourceCL.Value),0,500000,0); geo.Gauss2BL(ptVer.Y,ptVer.X,ref L,ref B,ref G); geo.proInit(geo.dms2rad(DestinationCL.Value),0,500000,0); geo.Gauss2XY(L,B,ref Y,ref X,ref G);  L.SetPointAt(ii,new Point2d(X,Y)); }
|