public override void CreateOperation(ElectrodeCAM eleCam, double inter) { this.Oper = ElectrodeOperationTemplate.CreateOperationOfFaceMilling(this.NameModel, eleCam); this.Oper.Create(this.NameModel.OperName); if (Conditions.Count != 0) { (this.Oper as FaceMillingModel).SetBoundary(Conditions.ToArray()); } this.Oper.SetStock(0.05, -inter); }
public override List <string> CreateOperation() { List <string> err = new List <string>(); this.template = new ElectrodeCAMTemplateModel(); if (this.nameModel == null) { throw new Exception("请现创建刀具路径所需要的路径!"); } try { this.operModel = ElectrodeOperationTemplate.CreateOperationOfFaceMilling(this.nameModel, template); } catch (Exception ex) { throw ex; } try { this.operModel.Create(this.nameModel.OperName); } catch (NXException ex) { throw ex; } if (Conditions.Count != 0) { try { (this.operModel as FaceMillingModel).SetBoundary(Conditions.ToArray()); } catch (NXException ex) { err.Add("设置边界错误! " + ex.Message); } } try { this.operModel.SetStock(0.05, -this.Inter); } catch (NXException ex) { err.Add("设置余量错误! " + ex.Message); } try { this.operModel.SetFeeds(600); } catch (NXException ex) { err.Add("设置切削进给错误! " + ex.Message); } return(err); }