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:
@@ -15,7 +15,7 @@ using System.Xml.Linq;
|
|||||||
namespace Sample.MachineTool
|
namespace Sample.MachineTool
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Provides access to the PMC-B1 machine tool model.
|
/// Provides access to the Table-B1 machine tool model.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <remarks>
|
/// <remarks>
|
||||||
/// ### Source Code
|
/// ### Source Code
|
||||||
@@ -74,7 +74,6 @@ namespace Sample.MachineTool
|
|||||||
MachineTool = GenXyzabcMachineTool();
|
MachineTool = GenXyzabcMachineTool();
|
||||||
}
|
}
|
||||||
#region XML IO
|
#region XML IO
|
||||||
//public PmcB1MachineToolSource(XElement src, object res) : this() { }
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// XML element name for serialization.
|
/// XML element name for serialization.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|||||||
@@ -87,8 +87,8 @@ public static class DemoBuildGeomOnlyMachiningProject
|
|||||||
IProgress<object> progress = null;
|
IProgress<object> progress = null;
|
||||||
localProjectService.MachiningChain
|
localProjectService.MachiningChain
|
||||||
= XFactory.GenByFile<CodeXyzabcMachineTool>(
|
= XFactory.GenByFile<CodeXyzabcMachineTool>(
|
||||||
"Resource", "MachineTool/PMC-B1/PMC-B1.mt", progress);
|
"Resource", "MachineTool/Table-B1.default/Table-B1.mt", progress);
|
||||||
localProjectService.MachiningChainFile = "PMC-B1/PMC-B1.mt";
|
localProjectService.MachiningChainFile = "Table-B1.default/Table-B1.mt";
|
||||||
|
|
||||||
localProjectService.SaveProject();
|
localProjectService.SaveProject();
|
||||||
|
|
||||||
|
|||||||
@@ -198,16 +198,16 @@ public static class DemoBuildMachiningProject
|
|||||||
IdealGeom = null,
|
IdealGeom = null,
|
||||||
WorkpieceGeomToFixtureBuckleTransformer = new StaticTranslation(new Vec3d(0, 0, 0)),
|
WorkpieceGeomToFixtureBuckleTransformer = new StaticTranslation(new Vec3d(0, 0, 0)),
|
||||||
CuttingPara = XFactory.GenByFile<ICuttingPara>(
|
CuttingPara = XFactory.GenByFile<ICuttingPara>(
|
||||||
"Resource/CuttingParameter", "Al6061T6.mp", progress),
|
"Resource/CuttingParameter", "Al6061T6.default.mp", progress),
|
||||||
WorkpieceMaterial = XFactory.GenByFile<WorkpieceMaterial>(
|
WorkpieceMaterial = XFactory.GenByFile<WorkpieceMaterial>(
|
||||||
"Resource/WorkpieceMaterial", "Al6061T6.WorkpieceMaterial", progress),
|
"Resource/WorkpieceMaterial", "Al6061T6.default.WorkpieceMaterial", progress),
|
||||||
};
|
};
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
#region ConfigureMachineChain
|
#region ConfigureMachineChain
|
||||||
localProjectService.MachiningChain
|
localProjectService.MachiningChain
|
||||||
= XFactory.GenByFile<CodeXyzabcMachineTool>(
|
= XFactory.GenByFile<CodeXyzabcMachineTool>(
|
||||||
"Resource", "MachineTool/PMC-B1/PMC-B1.mt", progress);
|
"Resource", "MachineTool/Table-B1.default/Table-B1.mt", progress);
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
machiningProject.MakeXmlSourceToFile(projectPath);
|
machiningProject.MakeXmlSourceToFile(projectPath);
|
||||||
|
|||||||
Reference in New Issue
Block a user