public InterferenceBuilder(Part part)
        {
            work         = new WorkModel();
            theUFSession = UFSession.GetUFSession();
            work.GetModelForPart(part);
            string asm = work.MoldInfo.MoldNumber + "-" + work.MoldInfo.WorkpieceNumber;

            assemble = AssembleSingleton.Instance().GetAssemble(asm);
            eles     = assemble.Electrodes.Where(a => a.WorkNumber == work.WorkNumber).ToList();
        }
 public static AssembleSingleton Instance()
 {
     if (instance == null)
     {
         lock (singletonLock)
         {
             if (instance == null)
             {
                 instance = new AssembleSingleton();
             }
         }
     }
     return(instance);
 }
Example #3
0
 public bool Add(ref AssembleSingleton singleton)
 {
     return(singleton.AddElectrode(this.Model));
 }
 public AddWorkBuilder(Part asmPart)
 {
     this.asmPart = asmPart;
     singleton    = AssembleSingleton.Instance();
     this.Model   = singleton.GetAssemble(asmPart);
 }
Example #5
0
 public bool Add(ref AssembleSingleton singleton)
 {
     return(singleton.AddWork(this.Model));
 }