示例#1
0
 public void KP_AreaParking()
 {
     CommandStart.Start(doc =>
     {
         KP.Parking.Area.AreaParkingService aps = new KP.Parking.Area.AreaParkingService();
         aps.Calc();
     });
 }
示例#2
0
 public AreaParking(ObjectId idPolyline, AreaParkingService service)
 {
     Service = service;
     using (var t = service.Db.TransactionManager.StartTransaction())
     {
         idPl = idPolyline;
         var pl = idPl.GetObject(OpenMode.ForRead, false, true) as Polyline;
         Area = Math.Round(pl.Area, 2);
         Load(pl);
         t.Commit();
     }
 }