refactor(demos): follow the Table-B1 rename and the marked resource names

The shipped machine tool is now MachineTool/Table-B1.default/Table-B1.mt
and the shipped cutting-parameter / workpiece-material files carry the
`.default` marker, so the three hard-coded resource paths move with them.
These samples are compiled into the public docsite verbatim, so a stale
path here ships as documentation.

Also removes the commented-out PmcB1MachineToolSource line and renames
the class summary, both of which put the retired name on the public docs.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-08-17 17:29:19 +08:00
co-authored by Claude Opus 5
parent 84f9828233
commit f83f8b9fb1
3 changed files with 6 additions and 7 deletions
@@ -87,8 +87,8 @@ public static class DemoBuildGeomOnlyMachiningProject
IProgress<object> progress = null;
localProjectService.MachiningChain
= XFactory.GenByFile<CodeXyzabcMachineTool>(
"Resource", "MachineTool/PMC-B1/PMC-B1.mt", progress);
localProjectService.MachiningChainFile = "PMC-B1/PMC-B1.mt";
"Resource", "MachineTool/Table-B1.default/Table-B1.mt", progress);
localProjectService.MachiningChainFile = "Table-B1.default/Table-B1.mt";
localProjectService.SaveProject();
+3 -3
View File
@@ -198,16 +198,16 @@ public static class DemoBuildMachiningProject
IdealGeom = null,
WorkpieceGeomToFixtureBuckleTransformer = new StaticTranslation(new Vec3d(0, 0, 0)),
CuttingPara = XFactory.GenByFile<ICuttingPara>(
"Resource/CuttingParameter", "Al6061T6.mp", progress),
"Resource/CuttingParameter", "Al6061T6.default.mp", progress),
WorkpieceMaterial = XFactory.GenByFile<WorkpieceMaterial>(
"Resource/WorkpieceMaterial", "Al6061T6.WorkpieceMaterial", progress),
"Resource/WorkpieceMaterial", "Al6061T6.default.WorkpieceMaterial", progress),
};
#endregion
#region ConfigureMachineChain
localProjectService.MachiningChain
= XFactory.GenByFile<CodeXyzabcMachineTool>(
"Resource", "MachineTool/PMC-B1/PMC-B1.mt", progress);
"Resource", "MachineTool/Table-B1.default/Table-B1.mt", progress);
#endregion
machiningProject.MakeXmlSourceToFile(projectPath);