refactor(demos): build sample machine tools as GeneralXyzabcMachineTool
Follows the CodeXyzabcMachineTool retirement in HiMech. DemoBuildMachineTool drops IGetCodeXyzabcMachineTool, which no longer exists, and spells out the doc comments the inherited interface used to supply. The two GenByFile<CodeXyzabcMachineTool> call sites are fixed rather than merely renamed: they read Resource machine tools rooted at <GeneralXyzabcMachineTool>, so the factory's `as` cast handed back null and the demo project got no machining chain at all. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -86,7 +86,7 @@ public static class DemoBuildGeomOnlyMachiningProject
|
||||
|
||||
IProgress<object> progress = null;
|
||||
localProjectService.MachiningChain
|
||||
= XFactory.GenByFile<CodeXyzabcMachineTool>(
|
||||
= XFactory.GenByFile<GeneralXyzabcMachineTool>(
|
||||
"Resource", "MachineTool/Table-B1.default/Table-B1.mt", progress);
|
||||
localProjectService.MachiningChainFile = "Table-B1.default/Table-B1.mt";
|
||||
|
||||
|
||||
@@ -206,7 +206,7 @@ public static class DemoBuildMachiningProject
|
||||
|
||||
#region ConfigureMachineChain
|
||||
localProjectService.MachiningChain
|
||||
= XFactory.GenByFile<CodeXyzabcMachineTool>(
|
||||
= XFactory.GenByFile<GeneralXyzabcMachineTool>(
|
||||
"Resource", "MachineTool/Table-B1.default/Table-B1.mt", progress);
|
||||
#endregion
|
||||
|
||||
|
||||
Reference in New Issue
Block a user