refactor(Sample): adapt demos to XFactory IProgress<object> signature
Made-with: Cursor
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user