Exemplo n.º 1
0
 public void Execute(IPCBIWindow parent)
 {
     //your code here
     foreach (ICMPObject cmp in parent.GetCurrentStep().GetSelectedCMPs())
     {
         if (!packageListClassifier.ContainsKey(cmp.UsedPackageName))
         {
             packageListClassifier.Add(cmp.UsedPackageName, cmp.UsedPackageName);
             IPackageSpecificsD pack     = cmp.GetPackageSpecificsD();
             ISurfaceSpecificsD ps       = pack.GetPackageSurfaceSpecificsD();
             IPolyClass         packPoly = ps.GetIPolyClass();
             packPoly.AddOversize(IMath.MM2Mils(0.2)); // Oversize can also be negative
             pack.SetOutline(packPoly);
         }
     }
     parent.UpdateView();
 }