fix SoftNcRunner GM code normalization.
This commit is contained in:
+5
-2
@@ -164,6 +164,7 @@ using Hi.NcMech.Holders;
|
||||
using Hi.Machining;
|
||||
using Hi.HiNcKits;
|
||||
using Hi.Milling.MillingTools;
|
||||
using Microsoft.Extensions.Logging;
|
||||
|
||||
namespace Sample.Machining;
|
||||
|
||||
@@ -192,7 +193,8 @@ public static class DemoBuildGeomOnlyMachiningProject
|
||||
|
||||
static void Main()
|
||||
{
|
||||
LocalApp.AppBegin();
|
||||
using var loggerFactory = Microsoft.Extensions.Logging.LoggerFactory.Create(b => b.AddConsole());
|
||||
LocalApp.AppBegin(loggerFactory.CreateLogger("Hi.Sample"));
|
||||
LocalProjectService localProjectService = new LocalProjectService();
|
||||
|
||||
var projectPath = "C:/HiNC-Projects/NewProject/Main.hincproj";
|
||||
@@ -232,9 +234,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