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(); }
private static TreeNode CreateTechOperationNode(ITechOperation techOperation) => new TreeNode(techOperation.Caption, 1, 1) { Tag = techOperation, Checked = techOperation.Enabled, ForeColor = techOperation.Enabled ? Color.Black : Color.Gray };
public void DeleteTechOperation(ITechOperation techOperation) { techOperation.Teardown(); techOperation.TechProcess.TechOperations.Remove(techOperation); }