fix SoftNcRunner GM code normalization.
This commit is contained in:
parent
6139c84ff9
commit
af599f36e6
@ -50,7 +50,7 @@ public static class DemoUseMachiningProject
|
||||
};
|
||||
Console.WriteLine($"Set machining step event.");
|
||||
//show MRR.
|
||||
localProjectService.RuntimeApi.SessionStepBuilt += (preStep, curStep) =>
|
||||
localProjectService.SessionShell.SessionStepBuilt += (preStep, curStep) =>
|
||||
{
|
||||
var sourceCommand = curStep.SourceCommand;
|
||||
var indexedFileLine=sourceCommand?.GetSentence()?.FirstIndexedFileLine;
|
||||
@ -65,13 +65,13 @@ public static class DemoUseMachiningProject
|
||||
|
||||
Console.WriteLine($"Session begin.");
|
||||
localProjectService.BeginSession();
|
||||
localProjectService.RuntimeApi.MachiningResolution_mm = 1;
|
||||
localProjectService.RuntimeApi.EnableCollisionDetection = true;
|
||||
localProjectService.RuntimeApi.EnablePauseOnFailure = false;
|
||||
localProjectService.RuntimeApi.EnablePhysics = false;
|
||||
localProjectService.SessionShell.MachiningResolution_mm = 1;
|
||||
localProjectService.SessionShell.EnableCollisionDetection = true;
|
||||
localProjectService.SessionShell.EnablePauseOnFailure = false;
|
||||
localProjectService.SessionShell.EnablePhysics = false;
|
||||
//the path from Shell-API is relative by project directory.
|
||||
localProjectService.RuntimeApi.PlayNcFile("NC/side.ptp");
|
||||
localProjectService.RuntimeApi.PlayNcFile("NC/circle.ptp");
|
||||
localProjectService.SessionShell.PlayNcFile("NC/side.ptp");
|
||||
localProjectService.SessionShell.PlayNcFile("NC/circle.ptp");
|
||||
localProjectService.EndSession();
|
||||
Console.WriteLine($"Session end.");
|
||||
#endregion
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user