public static ToolDefinition ActiveTool(this CAMPart part)
        {
            MachineOp mop = part.ActiveMOP();

            return(mop != null?mop.CurrentTool() : null);
        }
        public static MachineOp ActiveMOP(this CADFile file)
        {
            CAMPart part = file.ActivePart();

            return(part != null?part.ActiveMOP() : null);
        }