Ejemplo n.º 1
0
 public void SelectTechOperation(ITechOperation techOperation)
 {
     if (techOperation.ProcessingArea != null)
     {
         Acad.SelectObjectIds(techOperation.ProcessingArea.ObjectId);
     }
     techOperation.TechProcess.TechOperations.ForEach(p => p.SetToolpathVisible(p == techOperation));
     if (techOperation.ProcessCommands == null)
     {
         Acad.DeleteToolObject();
     }
     Acad.Editor.UpdateScreen();
 }
Ejemplo n.º 2
0
 private static TreeNode CreateTechOperationNode(ITechOperation techOperation) =>
 new TreeNode(techOperation.Caption, 1, 1)
 {
     Tag = techOperation, Checked = techOperation.Enabled, ForeColor = techOperation.Enabled ? Color.Black : Color.Gray
 };
Ejemplo n.º 3
0
 public void DeleteTechOperation(ITechOperation techOperation)
 {
     techOperation.Teardown();
     techOperation.TechProcess.TechOperations.Remove(techOperation);
 }