refactor(Sample): adapt demos to XFactory IProgress<object> signature

Made-with: Cursor
This commit is contained in:
2026-04-11 11:19:36 +08:00
parent e5ea1961a5
commit dd4c3ef28f
4 changed files with 78 additions and 76 deletions
@@ -1,4 +1,4 @@
using Hi.Common.XmlUtils;
using Hi.Common.XmlUtils;
using Hi.Geom;
using Hi.MachiningProcs;
using Hi.Mech.Topo;
@@ -83,9 +83,10 @@ public static class DemoBuildGeomOnlyMachiningProject
WorkpieceGeomToFixtureBuckleTransformer = new StaticTranslation(new Vec3d(0, 0, 0)),
};
IProgress<object> progress = null;
localProjectService.MachiningChain
= XFactory.GenByFile<CodeXyzabcMachineTool>(
"Resource", "MachineTool/PMC-B1/PMC-B1.mt", GenMode.Default);
"Resource", "MachineTool/PMC-B1/PMC-B1.mt", progress);
localProjectService.MachiningChainFile = "PMC-B1/PMC-B1.mt";
localProjectService.SaveProject();