public static bool LoadTooling(string toolingFile, out IntTooling.Tooling tooling, out IntTools.ToolSet toolSet)
        {
            var result = LoadTooling(toolingFile, out ExTooling.Tooling too, out ExTools.ToolSet ts);

            tooling = too.ToInternal();
            toolSet = ts.ToInternal();

            return(result);
        }
Example #2
0
        public static IntTooling.Tooling ToInternal(this ExTooling.Tooling tooling)
        {
            var t = new IntTooling.Tooling()
            {
                MachineFile = tooling.MachineFile,
                ToolsFile   = tooling.ToolsFile,
                Units       = new System.Collections.Generic.List <IntTooling.ToolingUnit>()
            };

            foreach (var item in tooling.Units)
            {
                t.Units.Add(new IntTooling.ToolingUnit()
                {
                    ToolName     = item.ToolName,
                    ToolHolderId = item.ToolHolderId
                });
            }

            return(t);
        }